/* ==============================================================
   UpadhiSetu — upadhisetu.com

   White ground, as requested. Brand colours are taken from the app
   (AppPalette.green in lib/core/theme/app_palette.dart) so site and
   product read as one identity.

   Deliberately single-theme: the brief specified a white background,
   so the palette is pinned rather than inverting under a dark OS
   preference. colour-scheme:only light stops the browser recolouring
   form controls and scrollbars underneath us.
   ============================================================== */
:root {
  color-scheme: only light;

  /* --- brand, from the app --- */
  --green:      #17823E;
  --green-deep: #0F6B31;
  --green-tint: #EAF5EE;
  --saffron:    #F5A623;
  --saffron-dp: #C97F0C;

  /* --- neutrals: white ground, with a faint green bias in the greys
         so they belong to the brand rather than looking generic --- */
  --white:  #FFFFFF;
  --paper:  #F7F9F7;
  --paper2: #EFF3EF;
  --ink:    #161D18;
  --ink-2:  #3C463E;
  --muted:  #6B766E;
  --line:   #E2E8E3;
  --line-2: #CFD8D1;

  /* --- 3D: one light source, top-left. Every raised surface uses the
         same three-part recipe — an inner top highlight, a tight
         contact shadow, and a wide ambient shadow. --- */
  --lift-1: 0 1px 0 rgba(255,255,255,.9) inset,
            0 1px 2px rgba(22,29,24,.06),
            0 2px 6px -2px rgba(22,29,24,.10);
  --lift-2: 0 1px 0 rgba(255,255,255,.9) inset,
            0 2px 4px rgba(22,29,24,.07),
            0 12px 24px -10px rgba(22,29,24,.16);
  --lift-3: 0 1px 0 rgba(255,255,255,.95) inset,
            0 4px 8px rgba(22,29,24,.08),
            0 28px 50px -20px rgba(22,29,24,.24);
  --lift-green: 0 1px 0 rgba(255,255,255,.28) inset,
                0 2px 4px rgba(15,107,49,.24),
                0 14px 28px -12px rgba(15,107,49,.42);

  --latin: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --t--1: clamp(.74rem, .73rem + .06vw, .79rem);
  --t-0:  clamp(.92rem, .9rem + .1vw, .98rem);
  --t-1:  clamp(1.02rem, .98rem + .2vw, 1.14rem);
  --t-2:  clamp(1.22rem, 1.12rem + .45vw, 1.5rem);
  --t-3:  clamp(1.45rem, 1.25rem + .85vw, 2rem);
  --t-4:  clamp(1.75rem, 1.4rem + 1.6vw, 2.6rem);

  --measure: 56ch;
  --r: 18px;
  --pad: clamp(1.15rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--latin);
  font-size: var(--t-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3 { margin: 0; text-wrap: balance; line-height: 1.11; letter-spacing: -.018em; }
h1 { font-size: var(--t-4); font-weight: 800; }
h2 { font-size: var(--t-3); font-weight: 800; }
h3 { font-size: var(--t-1); font-weight: 750; }
p  { margin: 0; max-width: var(--measure); color: var(--ink-2); }

a { color: var(--green-deep); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--saffron);
  outline-offset: 3px;
  border-radius: 8px;
}

.wrap { width: min(1160px, 100% - var(--pad) * 2); margin-inline: auto; }

.eyebrow {
  font-size: var(--t--1); font-weight: 750;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--green); margin: 0;
}

/* ---------------- logo ---------------- */
.mark { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.mark img { width: 32px; height: auto; }
.mark-text { font-size: 1.16rem; font-weight: 800; letter-spacing: -.022em; color: var(--ink); }
.mark-text i { font-style: normal; color: var(--green); }
.mark-text b { color: var(--saffron); }

/* ---------------- header ---------------- */
header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 1rem; padding: .8rem 0; }
.bar nav { margin-left: auto; display: flex; align-items: center; gap: clamp(.5rem, 2vw, 1.7rem); }
.bar nav a.lnk { font-size: var(--t--1); font-weight: 650; color: var(--muted); text-decoration: none; }
.bar nav a.lnk:hover { color: var(--ink); }
@media (max-width: 760px) { .bar nav a.lnk { display: none; } }

/* ---------------- buttons: extruded, one light source ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .78rem 1.3rem; border: 0; border-radius: 13px;
  font: inherit; font-weight: 750; font-size: var(--t--1);
  cursor: pointer; text-decoration: none; text-align: center;
  transform: translateY(0);
  transition: transform .13s ease, box-shadow .13s ease, background-color .13s ease;
}
.btn-lg { padding: 1rem 1.7rem; font-size: var(--t-0); border-radius: 15px; }

.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #2A9A52 0%, var(--green) 46%, var(--green-deep) 100%);
  box-shadow: var(--lift-green), 0 3px 0 0 #0B5527;
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-primary:active { transform: translateY(2px); box-shadow: var(--lift-1), 0 1px 0 0 #0B5527; }

.btn-accent {
  color: #3A2A00;
  background: linear-gradient(180deg, #FFC356 0%, var(--saffron) 48%, #E39312 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.5) inset,
              0 2px 4px rgba(180,120,10,.22),
              0 14px 28px -12px rgba(180,120,10,.4),
              0 3px 0 0 var(--saffron-dp);
}
.btn-accent:hover { transform: translateY(-1px); }
.btn-accent:active { transform: translateY(2px); box-shadow: var(--lift-1), 0 1px 0 0 var(--saffron-dp); }

.btn-ghost {
  color: var(--ink);
  background: linear-gradient(180deg, #fff 0%, #F4F7F4 100%);
  box-shadow: var(--lift-1), 0 0 0 1.5px var(--line-2) inset;
}
.btn-ghost:hover { transform: translateY(-1px); box-shadow: var(--lift-2), 0 0 0 1.5px var(--green) inset; color: var(--green-deep); }
.btn-ghost:active { transform: translateY(1px); }

/* ---------------- hero ---------------- */
.hero { padding: clamp(1.75rem, 4vw, 3rem) 0 clamp(1.5rem, 3vw, 2.25rem); position: relative; overflow: hidden; }
/* Soft brand glow behind the logo — the only ambient light on the page. */
.hero::before {
  content: ""; position: absolute; z-index: 0;
  width: 46rem; height: 46rem; right: -14rem; top: -20rem;
  background: radial-gradient(circle, rgba(23,130,62,.09) 0%, rgba(245,166,35,.06) 42%, transparent 68%);
  pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: 1.05fr .95fr; align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-lead { display: grid; gap: 1.4rem; justify-items: start; }
.gloss { font-size: var(--t--1); color: var(--muted); letter-spacing: .01em; }
.gloss strong { color: var(--ink); font-weight: 750; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero-sub { font-size: var(--t-1); color: var(--ink-2); font-weight: 500; }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* The logo, presented on a raised tile so the mark's own 3D styling
   sits on a real surface instead of floating. */
.logo-stage { display: grid; place-items: center; perspective: 1200px; }
.logo-tile {
  display: grid; place-items: center; gap: 1.1rem;
  padding: clamp(1.75rem, 5vw, 3rem) clamp(1.5rem, 5vw, 3.25rem);
  background: linear-gradient(160deg, #fff 0%, #FAFCFA 55%, #F1F5F1 100%);
  border-radius: 26px;
  box-shadow: var(--lift-3), 0 0 0 1px var(--line) inset;
  transform: rotateX(7deg) rotateY(-9deg) translateZ(0);
  transition: transform .5s cubic-bezier(.2,.8,.3,1);
}
.logo-stage:hover .logo-tile { transform: rotateX(3deg) rotateY(-4deg); }
@media (prefers-reduced-motion: reduce) {
  .logo-tile { transform: none; transition: none; }
  .logo-stage:hover .logo-tile { transform: none; }
}
.logo-tile img { width: min(190px, 46vw); filter: drop-shadow(0 14px 22px rgba(22,29,24,.22)); }
.logo-tile .name { font-size: clamp(1.3rem, 3.5vw, 1.7rem); font-weight: 800; letter-spacing: -.025em; }
.logo-tile .name i { font-style: normal; color: var(--green); }
.logo-tile .name b { color: var(--saffron); }
.logo-tile .tagline { font-size: var(--t--1); color: var(--muted); text-align: center; }

/* ---------------- sections ---------------- */
section { padding: clamp(2rem, 5vw, 3.25rem) 0; }
.band { background: var(--paper); border-block: 1px solid var(--line); }
.sec-head { display: grid; gap: .5rem; margin-bottom: clamp(1.2rem, 3vw, 1.75rem); }

/* ---------------- raised cards ---------------- */
.cards {
  display: grid; gap: clamp(1rem, 2.5vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 272px), 1fr));
}
.card {
  position: relative;
  display: grid; gap: .35rem; align-content: start;
  padding: clamp(1rem, 2.2vw, 1.25rem);
  background: linear-gradient(180deg, #fff 0%, #FCFDFC 100%);
  border-radius: var(--r);
  box-shadow: var(--lift-2), 0 0 0 1px var(--line) inset;
  transform: translateY(0);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--lift-3), 0 0 0 1px var(--line-2) inset; }
@media (prefers-reduced-motion: reduce) {
  .card, .card:hover { transform: none; transition: none; }
}
.card p { font-size: var(--t--1); }

/* Numbered chip — used only where the content is genuinely a sequence. */
.chip {
  width: 1.7rem; height: 1.7rem; border-radius: 9px;
  display: grid; place-items: center;
  font-weight: 800; font-size: .8rem; font-variant-numeric: tabular-nums;
  color: #fff;
  background: linear-gradient(180deg, #2A9A52, var(--green-deep));
  box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 4px 9px -3px rgba(15,107,49,.5);
}
.chip.alt { color: #3A2A00; background: linear-gradient(180deg, #FFC356, #E39312); box-shadow: 0 1px 0 rgba(255,255,255,.45) inset, 0 4px 9px -3px rgba(180,120,10,.45); }

/* Two lanes: the two sides of the marketplace. */
.lanes { display: grid; gap: clamp(1rem, 2.5vw, 1.5rem); grid-template-columns: 1fr 1fr; }
@media (max-width: 820px) { .lanes { grid-template-columns: 1fr; } }
.lane { padding: clamp(1.15rem, 2.6vw, 1.5rem); border-radius: 18px; }
.lane-a { background: linear-gradient(180deg, #fff, #FAFCFA); box-shadow: var(--lift-3), 0 0 0 1px var(--line) inset; }
.lane-b {
  color: #fff;
  background: linear-gradient(158deg, #239A52 0%, var(--green) 44%, #0C5A29 100%);
  box-shadow: var(--lift-green), 0 0 0 1px rgba(255,255,255,.14) inset;
}
.lane-b h3, .lane-b .role { color: #fff; }
.lane-b p { color: rgba(255,255,255,.86); }
.role { font-size: var(--t--1); font-weight: 750; letter-spacing: .11em; text-transform: uppercase; color: var(--green); }
.steps { display: grid; gap: .6rem; margin-top: .9rem; }
.steps li { display: flex; gap: .85rem; align-items: flex-start; font-size: var(--t--1); }
.lane-b .chip { background: rgba(255,255,255,.2); box-shadow: 0 1px 0 rgba(255,255,255,.3) inset; }

/* Category tiles */
.cats { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.cat {
  display: flex; align-items: center; gap: .7rem;
  padding: .8rem .9rem; border-radius: 15px;
  background: linear-gradient(180deg, #fff, #FBFCFB);
  box-shadow: var(--lift-1), 0 0 0 1px var(--line) inset;
  transition: transform .16s ease, box-shadow .16s ease;
}
.cat:hover { transform: translateY(-3px); box-shadow: var(--lift-2), 0 0 0 1.5px var(--green) inset; }
@media (prefers-reduced-motion: reduce) { .cat, .cat:hover { transform: none; transition: none; } }
.cat-ic {
  flex: 0 0 auto; width: 2.1rem; height: 2.1rem; border-radius: 10px;
  display: grid; place-items: center; font-size: 1.05rem;
  background: linear-gradient(180deg, #F1F8F3, var(--green-tint));
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 3px 7px -3px rgba(22,29,24,.18);
}
.cat-name { font-weight: 750; }

/* Language chips */

/* Closing CTA */
.close {
  border-radius: clamp(20px, 3vw, 30px);
  padding: clamp(2rem, 6vw, 3.6rem);
  color: #fff;
  background: linear-gradient(152deg, #239A52 0%, var(--green) 40%, #0A5024 100%);
  box-shadow: var(--lift-green);
  display: grid; gap: 1.4rem; justify-items: start;
}
.close h2 { color: #fff; }
.close p { color: rgba(255,255,255,.88); }
.close .note { font-size: var(--t--1); color: rgba(255,255,255,.68); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 2.75rem 0 3.5rem; background: var(--paper); }
.foot { display: grid; gap: 2rem; grid-template-columns: 1.4fr repeat(auto-fit, minmax(150px, 1fr)); }
@media (max-width: 700px) { .foot { grid-template-columns: 1fr; } }
.foot h4 { margin: 0 0 .75rem; font-size: var(--t--1); text-transform: uppercase; letter-spacing: .11em; color: var(--muted); }
.foot ul { display: grid; gap: .5rem; }
.foot a { font-size: var(--t--1); color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--green-deep); text-decoration: underline; }
.legal {
  margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; font-size: var(--t--1); color: var(--muted);
}

/* Scroll reveal */
.rv { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }

/* ==============================================================
   Long-form document pages (Terms, Privacy, About).
   Narrower measure than the landing page, numbered clause list,
   and a raised "at a glance" panel so the important parts of a
   legal page are readable without reading all of it.
   ============================================================== */
.doc-hero {
  padding: clamp(2.25rem, 6vw, 4rem) 0 clamp(1.25rem, 3vw, 2rem);
  background: linear-gradient(180deg, #FFFFFF 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
}
.doc-hero .wrap { display: grid; gap: .9rem; }
.doc-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; font-size: var(--t--1); color: var(--muted); }
.doc-meta b { color: var(--ink-2); font-weight: 700; }

.doc { padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 7vw, 5rem); }
.doc-body { max-width: 74ch; display: grid; gap: 1.6rem; }
.doc-body p, .doc-body li { color: var(--ink-2); }
.doc-body h2 {
  font-size: var(--t-2); margin-top: 1.4rem;
  display: flex; gap: .7rem; align-items: baseline;
}
.doc-body h2 .num {
  font-size: .58em; font-weight: 800; color: var(--green);
  font-variant-numeric: tabular-nums; flex: 0 0 auto;
}
.doc-body h3 { font-size: var(--t-0); margin-top: .6rem; color: var(--ink); }
.doc-body ul, .doc-body ol { display: grid; gap: .55rem; padding-left: 1.25rem; }
.doc-body ul li { list-style: disc; }
.doc-body ol li { list-style: decimal; }
.doc-body strong { color: var(--ink); }

/* "At a glance" — the plain-language summary above the formal text. */
.glance {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-radius: var(--r);
  background: linear-gradient(180deg, #fff, #FAFCFA);
  box-shadow: var(--lift-2), 0 0 0 1px var(--line) inset;
  border-left: 4px solid var(--green);
  display: grid; gap: .7rem;
}
.glance h3 { margin: 0; font-size: var(--t-0); }
.glance ul { padding-left: 1.15rem; display: grid; gap: .4rem; }
.glance li { list-style: disc; font-size: var(--t--1); }

/* Callout for the things people most often get wrong or need warning about. */
.note-box {
  padding: 1.1rem 1.25rem; border-radius: 14px;
  background: #FFF8E8;
  box-shadow: 0 0 0 1px #F2DFB0 inset;
  border-left: 4px solid var(--saffron);
  font-size: var(--t--1); color: #5C4712;
}
.note-box strong { color: #3A2A00; }

/* Data table used in the privacy policy. */
.tbl-wrap { overflow-x: auto; border-radius: var(--r); box-shadow: var(--lift-1), 0 0 0 1px var(--line) inset; }
table.data { width: 100%; border-collapse: collapse; background: #fff; font-size: var(--t--1); }
table.data th, table.data td { text-align: left; padding: .8rem 1rem; vertical-align: top; border-bottom: 1px solid var(--line); }
table.data th { background: var(--paper); font-weight: 750; color: var(--ink); white-space: nowrap; }
table.data tr:last-child td { border-bottom: 0; }

/* In-page contents list. */
.toc { display: grid; gap: .4rem; padding: 1.25rem 1.4rem; border-radius: var(--r);
       background: var(--paper); box-shadow: 0 0 0 1px var(--line) inset; }
.toc a { font-size: var(--t--1); color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--green-deep); text-decoration: underline; }
.toc-title { font-size: var(--t--1); font-weight: 750; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .3rem; }

.back-home { display: inline-flex; align-items: center; gap: .4rem; font-size: var(--t--1); font-weight: 650; text-decoration: none; }
