/* =========================================================
   GramSetu Showcase — design system
   Palette : ink #16243E · paper #FAF7F1 · marigold #E8A02C
             teal #1F6F6B · coral #E06A4E
   Type    : Bricolage Grotesque (display) · Instrument Sans (body)
             IBM Plex Mono (labels/prices) · Noto Sans Devanagari (Marathi)
   ========================================================= */

:root {
  --ink: #16243E;
  --ink-soft: #2A3A57;
  --paper: #FAF7F1;
  --paper-2: #F3EDE2;
  --card: #FFFFFF;
  --marigold: #E8A02C;
  --marigold-deep: #C9821A;
  --teal: #1F6F6B;
  --coral: #E06A4E;
  --muted: #5C6478;
  --hair: #E7E0D4;
  --hair-ink: rgba(255, 255, 255, .14);

  --maxw: 1140px;
  --gap: clamp(1rem, 3vw, 2rem);
  --radius: 16px;

  --font-display: "Bricolage Grotesque", Georgia, serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --font-deva: "Noto Sans Devanagari", var(--font-body);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gap); }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; margin: 0; }
h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h3 { font-size: 1.18rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1rem; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--marigold-deep);
  margin: 0 0 1rem;
}
.eyebrow.on-ink { color: var(--marigold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-body); font-weight: 600; font-size: .98rem;
  padding: .8rem 1.4rem; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--marigold); color: var(--ink); }
.btn-primary:hover { background: var(--marigold-deep); }
.btn-ghost { background: transparent; border-color: var(--hair-ink); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-line { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-wa { background: #25D366; color: #06351b; }
.btn-wa:hover { filter: brightness(.95); }
.btn-demo { background: var(--ink); color: #fff; width: 100%; justify-content: center; margin-bottom: .6rem; }
.btn-demo:hover { background: var(--ink-soft); }
.btn-demo .play { color: var(--marigold); font-size: .82em; }
.btn-sm { padding: .5rem .95rem; font-size: .85rem; }

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

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(22,36,62,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hair-ink);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: #fff; }
.brand .mark { width: 30px; height: 30px; flex: none; }
.brand b { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; }
.nav-links { display: none; gap: 1.6rem; align-items: center; }
.nav-links a { color: #DCE2EC; text-decoration: none; font-size: .95rem; }
.nav-links a:hover { color: #fff; }
@media (min-width: 820px) { .nav-links { display: flex; } }

/* ---------- Hero ---------- */
.hero { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.hero .wrap { padding-top: clamp(3rem, 8vw, 5.5rem); padding-bottom: clamp(3.5rem, 9vw, 6rem); position: relative; z-index: 2; }
.hero h1 { max-width: 16ch; }
.hero .lead { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: #C9D2E0; max-width: 46ch; margin-top: 1.2rem; }
.hero .deva { font-family: var(--font-deva); color: var(--marigold); font-size: 1.05rem; margin-top: .4rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

/* signature: the setu (bridge) arc */
.setu-arc { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .9; }
.setu-arc path.span { fill: none; stroke: var(--marigold); stroke-width: 2; stroke-dasharray: 1600; stroke-dashoffset: 1600; animation: draw 2.2s ease forwards .2s; }
.setu-arc path.cable { stroke: rgba(232,160,44,.35); stroke-width: 1; }
.setu-arc circle { fill: var(--marigold); }
@keyframes draw { to { stroke-dashoffset: 0; } }

.trust { display: flex; flex-wrap: wrap; gap: 1.1rem 1.8rem; margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--hair-ink); }
.trust span { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .04em; color: #AEB8C8; display: inline-flex; align-items: center; gap: .5rem; }
.trust span::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: var(--marigold); flex: none; }

/* ---------- Section frame ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-head { max-width: 56ch; margin-bottom: clamp(2rem, 5vw, 3rem); }
.section-head p { color: var(--muted); font-size: 1.08rem; margin-top: .8rem; }

/* ---------- Filter chips ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.chip {
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .04em;
  padding: .45rem .9rem; border-radius: 999px; border: 1.5px solid var(--hair);
  background: transparent; color: var(--ink); cursor: pointer; transition: all .15s ease;
}
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Product grid ---------- */
.grid { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--card); border: 1px solid var(--hair); border-radius: var(--radius);
  padding: 1.5rem; display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  position: relative; overflow: hidden;
}
.card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent, var(--marigold)); }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(22,36,62,.45); border-color: transparent; }
.card .cat { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent, var(--teal)); margin-bottom: .7rem; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.card-top .cat { margin-bottom: .7rem; }
.badge-soon { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--marigold-deep); background: #FDF3DC; border: 1px solid #f0d79a; padding: .2rem .5rem; border-radius: 999px; white-space: nowrap; }
.card h3 { margin-bottom: .4rem; }
.card .tag { color: var(--muted); font-size: .96rem; flex: 1; }
.card .feat { list-style: none; padding: 0; margin: 1rem 0 1.1rem; }
.card .feat li { font-size: .88rem; padding-left: 1.3rem; position: relative; margin-bottom: .35rem; color: var(--ink-soft); }
.card .feat li::before { content: ""; position: absolute; left: 0; top: .52em; width: 8px; height: 2px; background: var(--accent, var(--marigold)); }
.card .price-row { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; border-top: 1px solid var(--hair); padding-top: 1rem; margin-bottom: 1rem; }
.card .price { font-family: var(--font-mono); font-weight: 600; font-size: 1.02rem; }
.card .price small { display: block; font-weight: 400; font-size: .68rem; color: var(--muted); letter-spacing: .02em; }
.card .actions { display: flex; gap: .5rem; }
.card .actions .btn { flex: 1; justify-content: center; }
.live-dot { display: inline-flex; align-items: center; gap: .35rem; font-family: var(--font-mono); font-size: .68rem; color: var(--teal); }
.live-dot::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: var(--teal); }

/* ---------- How it works ---------- */
.steps { display: grid; gap: 1.2rem; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--paper-2); border-radius: var(--radius); padding: 1.6rem; position: relative; }
.step .n { font-family: var(--font-mono); font-size: .8rem; color: var(--marigold-deep); letter-spacing: .1em; }
.step h3 { margin: .5rem 0 .4rem; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Why band ---------- */
.why { background: var(--ink); color: #fff; }
.why .grid-why { display: grid; gap: 1.6rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .why .grid-why { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .why .grid-why { grid-template-columns: repeat(4, 1fr); } }
.why .item h3 { color: #fff; margin-bottom: .5rem; }
.why .item p { color: #AEB8C8; font-size: .94rem; margin: 0; }
.why .item .ic { color: var(--marigold); font-family: var(--font-mono); font-size: .8rem; letter-spacing: .1em; }

/* ---------- Contact / inquiry ---------- */
.contact { background: var(--paper-2); }
.contact-grid { display: grid; gap: 2.4rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 880px) { .contact-grid { grid-template-columns: 1fr 1.1fr; } }
.contact .lead-copy p { color: var(--muted); }
.wa-card { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 1.6rem; margin-top: 1.4rem; }
.wa-card p { color: #C9D2E0; font-size: .95rem; }

.form { background: var(--card); border: 1px solid var(--hair); border-radius: var(--radius); padding: clamp(1.4rem, 4vw, 2rem); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .4rem; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: .8rem .9rem; border: 1.5px solid var(--hair); border-radius: 10px; background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--marigold); box-shadow: 0 0 0 3px rgba(232,160,44,.18); }
.field textarea { min-height: 96px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { width: 100%; justify-content: center; }
.form-note { font-size: .8rem; color: var(--muted); margin-top: .8rem; text-align: center; }
.form-msg { padding: .9rem 1rem; border-radius: 10px; font-size: .92rem; margin-bottom: 1rem; display: none; }
.form-msg.ok { display: block; background: #E7F4ED; color: #145c39; border: 1px solid #b8e2cb; }
.form-msg.err { display: block; background: #FBEAE7; color: #8a2c1c; border: 1px solid #f1c4ba; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #AEB8C8; padding-block: 2.6rem; border-top: 1px solid var(--hair-ink); }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }
.footer .brand b { color: #fff; }
.footer a { color: #C9D2E0; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer small { font-family: var(--font-mono); font-size: .74rem; }

/* ---------- Detail page ---------- */
.detail-hero { background: var(--ink); color: #fff; }
.detail-hero .wrap { padding-block: clamp(2.6rem, 7vw, 4.5rem); }
.back { font-family: var(--font-mono); font-size: .8rem; color: #AEB8C8; text-decoration: none; display: inline-flex; gap: .4rem; margin-bottom: 1.4rem; }
.back:hover { color: #fff; }
.detail-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); max-width: 18ch; }
.detail-hero .tag { color: #C9D2E0; font-size: 1.15rem; max-width: 50ch; margin-top: 1rem; }
.detail-grid { display: grid; gap: 2.4rem; grid-template-columns: 1fr; margin-top: 2.4rem; }
@media (min-width: 900px) { .detail-grid { grid-template-columns: 1.4fr .9fr; } }
.detail-grid h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.detail-feat { list-style: none; padding: 0; margin: 0; }
.detail-feat li { padding: .8rem 0 .8rem 1.6rem; border-bottom: 1px solid var(--hair); position: relative; }
.detail-feat li::before { content: ""; position: absolute; left: 0; top: 1.15em; width: 12px; height: 2px; background: var(--accent, var(--marigold)); }
.buybox { background: var(--card); border: 1px solid var(--hair); border-radius: var(--radius); padding: 1.6rem; position: sticky; top: 84px; }
.buybox .price { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 600; }
.buybox .price small { display: block; font-size: .78rem; color: var(--muted); font-weight: 400; margin-top: .2rem; }
.buybox .meta { font-size: .9rem; color: var(--muted); margin: 1rem 0; padding-block: 1rem; border-block: 1px solid var(--hair); }
.buybox .btn { width: 100%; justify-content: center; margin-bottom: .6rem; }

/* =========================================================
   v2 — mobile-first nav, WhatsApp FAB, compact layout,
   products page, consolidated contact
   ========================================================= */

/* ---- Mobile nav toggle (hamburger) ---- */
.nav .wrap { position: relative; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 44px; height: 44px; padding: 10px; border-radius: 10px; }
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; margin: 5px 0; transition: transform .2s ease, opacity .2s ease; }
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 819px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 64px;
    flex-direction: column; align-items: stretch; gap: .2rem;
    background: rgba(22,36,62,.98); backdrop-filter: blur(10px);
    padding: .8rem var(--gap) 1.1rem; border-bottom: 1px solid var(--hair-ink);
    box-shadow: 0 20px 30px -18px rgba(0,0,0,.5);
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: .8rem .2rem; font-size: 1rem; }
  .nav-links .btn { margin-top: .5rem; justify-content: center; }
}

/* ---- Floating WhatsApp button ---- */
.wa-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 26px -8px rgba(0,0,0,.45); text-decoration: none;
  transition: transform .15s ease;
}
.wa-fab:hover { transform: scale(1.06); }
.wa-fab svg { width: 30px; height: 30px; }
@media (min-width: 820px) { .wa-fab { width: 60px; height: 60px; right: 22px; bottom: 22px; } .wa-fab svg { width: 32px; height: 32px; } }

/* ---- "See all" button ---- */
.see-all { margin-top: 2.2rem; text-align: center; }

/* ---- How-it-works band tint ---- */
.how-band { background: var(--paper-2); }

/* ---- Products page hero + CTA band ---- */
.page-hero { background: var(--ink); color: #fff; }
.page-hero .wrap { padding-block: clamp(2.2rem, 6vw, 3.6rem); }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); }
.page-sub { color: #C9D2E0; max-width: 56ch; margin-top: .9rem; }
.cta-band { background: var(--ink); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #AEB8C8; margin: .7rem 0 1.5rem; }

/* ---- Consolidated contact ---- */
.opt { color: var(--muted); font-weight: 400; }
.reply-by { font-family: var(--font-mono); font-size: .8rem; color: var(--teal); margin-top: 1.2rem; }
.or-wa { display: flex; align-items: center; gap: .9rem; margin: 1rem 0 .2rem; }
.or-wa .or { font-family: var(--font-mono); font-size: .78rem; color: var(--muted); }
.or-wa .btn { flex: 1; justify-content: center; }

/* ---- Footer links ---- */
.foot-links { display: flex; gap: 1.1rem; flex-wrap: wrap; }

/* ---- Mobile compactness: shorten the page on phones ---- */
@media (max-width: 639px) {
  .section { padding-block: clamp(2.2rem, 8vw, 3rem); }
  .hero .wrap { padding-top: 2.4rem; padding-bottom: 2.8rem; }
  .hero h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
  .card { padding: 1.25rem; }
  .trust { gap: .55rem 1.1rem; margin-top: 1.5rem; padding-top: 1.1rem; }
  .trust span { font-size: .72rem; }
  .section-head { margin-bottom: 1.6rem; }
  .hero-cta .btn { flex: 1; justify-content: center; }
  .wa-fab { width: 52px; height: 52px; }
}
