/* ===========================================================
   KheeraSetu — shared stylesheet
   Aesthetic: fresh dairy cooperative editorial
   Cream paper · OMFED blue ink · ghee-gold + leaf-green accents
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&family=Hanken+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --ink: #14223a;
  --ink-soft: #3a4860;
  --blue: #0b5394;
  --blue-deep: #073a6b;
  --blue-bright: #1f7ad1;
  --cream: #fbf6ec;
  --cream-2: #f3ead9;
  --milk: #ffffff;
  --gold: #d99a2b;
  --gold-soft: #f2d9a0;
  --green: #2f7d52;
  --green-soft: #cfe5d6;
  --muted: #5e6b7e;
  --line: #e4dac6;
  --radius: 18px;
  --shadow-sm: 0 2px 10px rgba(20, 34, 58, 0.06);
  --shadow: 0 18px 50px -22px rgba(11, 83, 148, 0.30);
  --shadow-lg: 0 40px 80px -30px rgba(11, 83, 148, 0.40);
  --maxw: 1160px;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Hanken Grotesk', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background-color: var(--cream);
  background-image:
    radial-gradient(circle at 12% -5%, rgba(31, 122, 209, 0.10), transparent 42%),
    radial-gradient(circle at 92% 8%, rgba(217, 154, 43, 0.10), transparent 40%);
  background-attachment: fixed;
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* subtle paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 26px; position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; color: var(--ink); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold); display: inline-block; }

/* ---------- Top bar ---------- */
header.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(251, 246, 236, 0.82);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-weight: 600; font-size: 1.32rem; color: var(--ink); }
.brand .mark { height: 46px; width: auto; flex: none; display: block; }
footer.site .brand .mark { height: 52px; }
.brand b { color: var(--blue); font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 0.96rem; font-weight: 500; color: var(--ink-soft); transition: color .2s; }
.nav-links a:hover { color: var(--blue); }
.nav-cta {
  background: var(--blue);
  color: var(--milk);
  padding: 11px 22px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, background .2s;
}
.nav-cta:hover { background: var(--blue-deep); transform: translateY(-2px); color: var(--milk); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; border-radius: 100px; font-weight: 600; font-size: 1rem;
  cursor: pointer; border: 0; transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-primary { background: var(--blue); color: var(--milk); box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--milk); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-3px); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 90px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.7rem, 6vw, 4.4rem); margin: 22px 0 20px; }
.hero h1 .ital { font-style: italic; font-weight: 500; color: var(--blue); }
.hero p.lede { font-size: 1.18rem; color: var(--ink-soft); max-width: 33ch; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 38px; margin-top: 46px; flex-wrap: wrap; }
.hero-stats .stat .n { font-family: var(--serif); font-size: 2.1rem; font-weight: 600; color: var(--blue); line-height: 1; }
.hero-stats .stat .l { font-size: 0.85rem; color: var(--muted); margin-top: 6px; }

.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 420px; }
.drop-card {
  position: relative; width: 100%; max-width: 420px; aspect-ratio: 1/1.04;
  background: linear-gradient(160deg, var(--blue-bright), var(--blue-deep));
  border-radius: 40px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.drop-card svg { width: 78%; }
.constellation { position: absolute; inset: 0; opacity: 0.5; }
.float-chip {
  position: absolute; background: var(--milk); border-radius: 16px; padding: 13px 17px;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 11px;
  font-size: 0.9rem; font-weight: 600; color: var(--ink);
}
.float-chip .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.float-chip.a { top: 6%; left: -6%; animation: float 5s ease-in-out infinite; }
.float-chip.b { bottom: 12%; right: -8%; animation: float 5s ease-in-out infinite 1.4s; }
.float-chip.c { bottom: 40%; left: -10%; animation: float 5s ease-in-out infinite 2.6s; }
@keyframes float { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-12px);} }

/* ---------- Section scaffolding ---------- */
section { position: relative; padding: 86px 0; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 16px 0 14px; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.center .eyebrow { justify-content: center; }

/* ---------- Features ---------- */
.features { background: var(--cream-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: var(--milk); border-radius: var(--radius); padding: 30px 28px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature .ic { width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 18px; }
.feature h3 { font-size: 1.3rem; margin-bottom: 9px; }
.feature p { font-size: 0.98rem; color: var(--ink-soft); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 30px 24px 26px; background: var(--milk); border: 1px solid var(--line); border-radius: var(--radius); }
.step .num {
  font-family: var(--serif); font-size: 1.05rem; font-weight: 700; color: var(--milk);
  width: 40px; height: 40px; border-radius: 50%; background: var(--gold);
  display: grid; place-items: center; margin-bottom: 18px;
}
.step h3 { font-size: 1.18rem; margin-bottom: 8px; }
.step p { font-size: 0.94rem; color: var(--ink-soft); }

/* ---------- Audience ---------- */
.audience { background: var(--blue-deep); color: var(--cream); }
.audience .eyebrow { color: var(--gold-soft); }
.audience .eyebrow::before { background: var(--gold); }
.audience h2, .audience h3 { color: var(--milk); }
.audience .section-head p { color: rgba(255,255,255,0.78); }
.aud-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.aud {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius); padding: 30px 28px; backdrop-filter: blur(4px);
}
.aud h3 { font-size: 1.32rem; margin-bottom: 10px; }
.aud p { color: rgba(255,255,255,0.78); font-size: 0.98rem; }
.aud .tag { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 16px; }

/* ---------- Voice / highlight band ---------- */
.band { background: var(--cream-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.voice-mock {
  background: linear-gradient(165deg, var(--blue-bright), var(--blue-deep));
  border-radius: 28px; padding: 30px; box-shadow: var(--shadow-lg); color: var(--milk);
}
.bubble { background: rgba(255,255,255,0.14); border-radius: 16px 16px 16px 4px; padding: 14px 18px; margin-bottom: 12px; max-width: 84%; }
.bubble.me { background: var(--milk); color: var(--ink); margin-left: auto; border-radius: 16px 16px 4px 16px; }
.bubble small { display: block; font-size: 0.72rem; opacity: 0.6; margin-bottom: 3px; letter-spacing: 0.04em; }
.mic { display: flex; align-items: center; gap: 14px; margin-top: 20px; background: rgba(255,255,255,0.1); padding: 12px 16px; border-radius: 100px; }
.mic .ring { width: 42px; height: 42px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; box-shadow: 0 0 0 0 rgba(217,154,43,.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 0%{ box-shadow: 0 0 0 0 rgba(217,154,43,.55);} 70%{ box-shadow: 0 0 0 16px rgba(217,154,43,0);} 100%{ box-shadow: 0 0 0 0 rgba(217,154,43,0);} }

/* ---------- CTA download ---------- */
.download { text-align: center; }
.store-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.store {
  display: inline-flex; align-items: center; gap: 13px; background: var(--ink); color: var(--milk);
  padding: 13px 24px; border-radius: 14px; transition: transform .2s; box-shadow: var(--shadow);
}
.store:hover { transform: translateY(-3px); color: var(--milk); }
.store small { display: block; font-size: 0.68rem; opacity: 0.75; letter-spacing: 0.04em; }
.store strong { font-size: 1.06rem; font-weight: 700; }

/* ---------- Generic content pages ---------- */
.page-hero { padding: 64px 0 22px; }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.5rem); margin: 18px 0 14px; }
.page-hero p { color: var(--ink-soft); font-size: 1.12rem; max-width: 56ch; }
.page-hero .meta { font-size: 0.86rem; color: var(--muted); margin-top: 14px; }

.doc { padding: 30px 0 80px; }
.doc-card {
  background: var(--milk); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 44px 48px; box-shadow: var(--shadow-sm); max-width: 860px;
}
.doc-card h2 { font-size: 1.5rem; margin: 34px 0 12px; padding-top: 8px; }
.doc-card h2:first-child { margin-top: 0; }
.doc-card h3 { font-size: 1.15rem; margin: 22px 0 8px; }
.doc-card p { margin-bottom: 14px; color: var(--ink-soft); }
.doc-card ul, .doc-card ol { margin: 0 0 16px 22px; color: var(--ink-soft); }
.doc-card li { margin-bottom: 8px; }
.doc-card strong { color: var(--ink); }
.doc-card a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.toc { background: var(--cream-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; margin-bottom: 30px; max-width: 860px; }
.toc h4 { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.toc ol { margin-left: 18px; columns: 2; gap: 28px; }
.toc a { color: var(--ink-soft); font-size: 0.95rem; }
.toc a:hover { color: var(--blue); }

.note { background: var(--gold-soft); border-radius: 12px; padding: 14px 18px; font-size: 0.9rem; color: #6b4e16; margin-bottom: 24px; max-width: 860px; border: 1px solid #e7c982; }

/* ---------- About blocks ---------- */
.about-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.value { background: var(--milk); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.value .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; }
.value h3 { font-size: 1.22rem; margin-bottom: 8px; }
.value p { font-size: 0.96rem; color: var(--ink-soft); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.fact-list { list-style: none; margin: 0; }
.fact-list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--line); font-size: 0.96rem; }
.fact-list li span:first-child { color: var(--muted); }
.fact-list li span:last-child { font-weight: 600; text-align: right; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px; align-items: start; }
.contact-card { background: var(--milk); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); margin-bottom: 18px; display: flex; gap: 16px; align-items: flex-start; }
.contact-card .ic { width: 46px; height: 46px; border-radius: 12px; flex: none; display: grid; place-items: center; }
.contact-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.contact-card p, .contact-card a { font-size: 0.96rem; color: var(--ink-soft); }
.form { background: var(--milk); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.form label { display: block; font-size: 0.86rem; font-weight: 600; margin-bottom: 7px; color: var(--ink); }
.field { margin-bottom: 18px; }
.form input, .form textarea, .form select {
  width: 100%; padding: 13px 15px; border-radius: 11px; border: 1.5px solid var(--line);
  background: var(--cream); font-family: var(--sans); font-size: 0.98rem; color: var(--ink); transition: border .2s;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--blue); }
.form textarea { resize: vertical; min-height: 120px; }

/* ---------- Footer ---------- */
footer.site {
  background: var(--ink); color: rgba(255,255,255,0.72); padding: 64px 0 30px; margin-top: 0;
}
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
footer.site .brand { color: var(--milk); margin-bottom: 14px; }
footer.site .brand b { color: var(--gold-soft); }
footer.site p { font-size: 0.92rem; max-width: 34ch; }
footer.site h4 { font-family: var(--sans); color: var(--milk); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 16px; }
footer.site ul { list-style: none; }
footer.site ul li { margin-bottom: 10px; }
footer.site ul a { font-size: 0.94rem; transition: color .2s; }
footer.site ul a:hover { color: var(--gold-soft); }
.foot-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 46px; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.84rem; }
.foot-bottom .legal { font-size: 0.82rem; color: rgba(255,255,255,0.5); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .band-grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .feature-grid, .aud-grid, .about-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .hero-visual { min-height: 360px; }
  .doc-card { padding: 30px 26px; }
  .toc ol { columns: 1; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 74px; left: 0; right: 0;
    background: var(--cream); padding: 22px 26px; gap: 18px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .feature-grid, .aud-grid, .about-grid, .steps, .foot-grid { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
  .hero { padding: 48px 0 64px; }
  .float-chip.a, .float-chip.c { left: 2%; }
  .float-chip.b { right: 2%; }
}

/* ---------- Delete account flow ---------- */
.delete-status {
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: 14px;
  background: rgba(11, 83, 148, 0.06);
  border: 1px solid rgba(11, 83, 148, 0.14);
}
.delete-status p { margin: 8px 0 14px; color: var(--ink-soft); }
.delete-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-top: 8px;
}
.delete-check input { margin-top: 4px; flex: none; }
.delete-done {
  padding: 22px;
  border-radius: 14px;
  background: rgba(46, 125, 79, 0.08);
  border: 1px solid rgba(46, 125, 79, 0.18);
}
.delete-done h3 { margin-bottom: 8px; color: var(--green); }
.delete-done p { color: var(--ink-soft); }

