/* Attadipa Lab: warm paper, lamp saffron, one accent per app */
:root {
  --paper: #fbf7f0;
  --paper-2: #f3ebde;
  --card: #fffdf9;
  --ink: #1b1813;
  --ink-2: #5d5547;
  --ink-3: #8a8173;
  --line: #e7ddcc;
  --lamp: #d9731a;
  --lamp-deep: #a8510c;
  --glow: rgba(245, 158, 11, 0.28);
  --med: #0f6b5f;
  --med-tint: #e4f1ed;
  --med-line: #c7e1da;
  --status: #8a1c2b;
  --status-tint: #fbece4;
  --status-line: #f1d3c6;
  --shadow: 0 1px 2px rgba(40, 28, 10, 0.06), 0 12px 32px -12px rgba(40, 28, 10, 0.18);
  --phone-shadow: 0 30px 60px -20px rgba(40, 24, 6, 0.45), 0 12px 24px -12px rgba(40, 24, 6, 0.3);
  --display: "Fraunces", Georgia, serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --hindi: "Tiro Devanagari Hindi", "Noto Serif Devanagari", serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14110d;
    --paper-2: #1b1712;
    --card: #1f1a14;
    --ink: #f4eee4;
    --ink-2: #c4baa9;
    --ink-3: #8f8676;
    --line: #322b22;
    --lamp: #f2a14a;
    --lamp-deep: #f5b56b;
    --glow: rgba(245, 158, 11, 0.18);
    --med: #5cc2ae;
    --med-tint: #13221f;
    --med-line: #1f3a34;
    --status: #f08a8a;
    --status-tint: #241614;
    --status-line: #3d2420;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -12px rgba(0, 0, 0, 0.6);
    --phone-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8), 0 12px 24px -12px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { width: 30px; height: 30px; }
.brand span { font: 600 21px/1 var(--display); letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; color: var(--ink-2); font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--ink); }
.nav .btn-sm {
  color: var(--paper); background: var(--ink); padding: 8px 16px; border-radius: 999px;
}
.nav .btn-sm:hover { color: var(--paper); background: var(--lamp-deep); }

/* ---------- type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--lamp-deep);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(42px, 6.2vw, 76px); line-height: 1.02; font-variation-settings: "opsz" 144; }
h2 { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.08; font-variation-settings: "opsz" 120; }
h3 { font-size: 24px; line-height: 1.2; }
h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--lamp-deep); }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; color: var(--ink-2); max-width: 34em; }

/* ---------- buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px; font-weight: 600; font-size: 16px;
  text-decoration: none; transition: transform .15s, background .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--lamp-deep); }
.btn-ghost { border: 1.5px solid var(--line); color: var(--ink); background: var(--card); }
.btn-ghost:hover { border-color: var(--ink-3); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 96px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero-copy { display: grid; gap: 26px; justify-items: start; }
.hero-note { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-3); }
.hero-note .dot { width: 8px; height: 8px; border-radius: 50%; background: #22a06b; box-shadow: 0 0 0 4px rgba(34,160,107,.15); }
.hero-art { position: relative; height: 600px; }
.hero-art::before {
  content: ""; position: absolute; inset: 6% 4% 0 10%;
  background: radial-gradient(closest-side, var(--glow), transparent 72%);
  animation: breathe 6s ease-in-out infinite;
}
.hero-art .phone { position: absolute; }
.hero-art .p1 { width: 250px; left: 6%; top: 40px; transform: rotate(-7deg); }
.hero-art .p2 { width: 268px; right: 6%; top: 0; transform: rotate(5deg); }
.float-chip {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 10px 14px; box-shadow: var(--shadow); font-size: 14px; font-weight: 600; white-space: nowrap;
}
.float-chip small { display: block; font-weight: 500; color: var(--ink-3); font-size: 12px; }
.float-chip .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.float-chip .ic svg { width: 18px; height: 18px; }
.chip-a { right: 0; bottom: 70px; }
.chip-a .ic { background: var(--med-tint); color: var(--med); }
.chip-b { left: 0; bottom: 130px; }
.chip-b .ic { background: var(--status-tint); color: var(--status); }
@keyframes breathe { 0%, 100% { opacity: .85; transform: scale(1); } 50% { opacity: 1; transform: scale(1.04); } }

/* ---------- phone ---------- */
.phone {
  aspect-ratio: 9 / 20; padding: 8px; border-radius: 38px;
  background: linear-gradient(160deg, #2b2b2e, #0e0e10);
  box-shadow: var(--phone-shadow), inset 0 0 0 1.5px rgba(255,255,255,.08);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 31px; background: #f4f4f4; }

/* ---------- sections ---------- */
section { position: relative; }
.section { padding: 96px 0; }
.section-head { display: grid; gap: 16px; max-width: 760px; margin-bottom: 48px; }

.app {
  border-radius: 32px; padding: 56px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px;
  align-items: center; overflow: hidden; position: relative;
}
.app + .app { margin-top: 28px; }
.app-med { background: var(--med-tint); border: 1px solid var(--med-line); }
.app-status { background: var(--status-tint); border: 1px solid var(--status-line); grid-template-columns: 1.1fr 1fr; }
.app-med { grid-template-columns: 1fr 1fr; }
.app-status .app-copy { order: 2; }
.app-copy { display: grid; gap: 20px; align-content: start; }
.app-id { display: flex; align-items: center; gap: 14px; }
.app-icon {
  width: 56px; height: 56px; border-radius: 15px; display: grid; place-items: center;
  color: #fff; box-shadow: 0 8px 18px -8px rgba(0,0,0,.35);
}
.app-icon svg { width: 28px; height: 28px; }
.app-med .app-icon { background: linear-gradient(145deg, #149282, #0b5148); }
.app-status .app-icon { background: linear-gradient(145deg, #f2a14a, #b4361f); }
.app-id h3 { font-size: 28px; }
.app-id p { margin: 2px 0 0; font-size: 14px; color: var(--ink-3); font-weight: 500; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 600; background: var(--card); border: 1px solid var(--line); color: var(--ink-2);
  justify-self: start;
}
.pill svg { width: 14px; height: 14px; }
.app-copy h2 { font-size: clamp(28px, 3.2vw, 40px); }
.app-med h2 em { color: var(--med); }
.app-status h2 em { color: var(--status); }
.hindi { font-family: var(--hindi); font-size: 22px; color: var(--status); margin: -6px 0 0; }
.features { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 14px; }
.features li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; color: var(--ink-2); }
.features li strong { color: var(--ink); font-weight: 600; }
.features .tick {
  width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; margin-top: 1px;
}
.features .tick svg { width: 16px; height: 16px; }
.app-med .tick { background: var(--card); color: var(--med); }
.app-status .tick { background: var(--card); color: var(--status); }
.app-links { display: flex; gap: 20px; font-size: 15px; font-weight: 500; }
.app-links a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--ink-3); }
.app-links a:hover { color: var(--ink); }

.phones { display: flex; justify-content: center; align-items: flex-end; gap: 0; padding-bottom: 30px; }
.phones .phone { width: 188px; flex: none; }
.phones .phone:nth-child(1) { margin-right: -34px; transform: translateY(30px) rotate(-6deg); z-index: 1; }
.phones .phone:nth-child(2) { width: 214px; z-index: 2; }
.phones .phone:nth-child(3) { margin-left: -34px; transform: translateY(30px) rotate(6deg); z-index: 1; }

.posts {
  grid-column: 1 / -1; order: 3; display: flex; align-items: flex-start; gap: 16px; justify-content: center; margin-top: 8px;
}
.posts img {
  width: 150px; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 16px; min-width: 0;
  box-shadow: var(--shadow); border: 4px solid var(--card);
}
.posts img:nth-child(odd) { transform: rotate(-3deg); }
.posts img:nth-child(even) { transform: rotate(3deg) translateY(6px); }

/* ---------- values ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value {
  background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 30px;
  display: grid; gap: 12px; align-content: start;
}
.value .ic {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--paper-2); color: var(--lamp-deep);
}
.value .ic svg { width: 24px; height: 24px; }
.value h3 { font-size: 22px; }
.value p { margin: 0; color: var(--ink-2); }

/* ---------- about + contact ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.about-copy { display: grid; gap: 20px; }
.about-copy p { margin: 0; color: var(--ink-2); font-size: 18px; }
.about-copy .quote {
  font-family: var(--display); font-style: italic; font-size: 24px; line-height: 1.4; color: var(--ink);
  border-left: 3px solid var(--lamp); padding-left: 20px; margin: 8px 0 0;
}
.contact-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 36px;
  box-shadow: var(--shadow); display: grid; gap: 24px;
}
.contact-row { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; }
.contact-row .ic {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--paper-2); color: var(--lamp-deep);
}
.contact-row .ic svg { width: 20px; height: 20px; }
.contact-row small { display: block; color: var(--ink-3); font-size: 13px; font-weight: 500; }
.contact-row a, .contact-row span { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 17px; }
.contact-row a:hover { color: var(--lamp-deep); }
.legal { border-top: 1px solid var(--line); padding-top: 20px; font-size: 14px; color: var(--ink-3); line-height: 1.6; }
.legal strong { color: var(--ink-2); font-weight: 600; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--ink-3); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* ---------- legal pages ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 24px 96px; }
.doc .eyebrow { margin-bottom: 14px; }
.doc h1 { font-size: clamp(36px, 5vw, 54px); margin-bottom: 10px; }
.doc h2 { font-size: 26px; margin: 44px 0 12px; letter-spacing: -0.01em; }
.doc p, .doc li { color: var(--ink-2); }
.doc li { margin: 6px 0; }
.doc strong { color: var(--ink); }
.doc a { color: var(--lamp-deep); }
.updated { color: var(--ink-3); font-size: 15px; margin: 0; }
.summary {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px 26px;
  margin: 32px 0 8px; box-shadow: var(--shadow);
}
.summary strong { font-family: var(--display); font-size: 20px; }
.summary ul { margin: 10px 0 0; padding-left: 20px; }
dl.details { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 16px 0 0; }
dl.details dt { color: var(--ink-3); }
dl.details dd { margin: 0; color: var(--ink); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-art::before { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { height: 520px; max-width: 520px; width: 100%; margin: 0 auto; }
  .app, .app-status { grid-template-columns: 1fr; padding: 40px 28px; }
  .app-status .app-copy { order: 0; }
  .values { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav a:not(.btn-sm) { display: none; }
  .hero { padding: 28px 0 64px; }
  .hero-art { height: 430px; }
  .hero-art .p1 { width: 190px; left: 2%; top: 30px; }
  .hero-art .p2 { width: 204px; right: 2%; }
  .chip-a { bottom: 30px; }
  .chip-b { bottom: 90px; }
  .section { padding: 64px 0; }
  .app, .app-status { padding: 32px 18px; border-radius: 26px; }
  .phones { min-height: 0; }
  .phones .phone { width: 116px; padding: 5px; border-radius: 22px; }
  .phones .phone img { border-radius: 18px; }
  .phones .phone:nth-child(2) { width: 132px; }
  .phones .phone:nth-child(1) { margin-right: -22px; transform: translateY(18px) rotate(-6deg); }
  .phones .phone:nth-child(3) { margin-left: -22px; transform: translateY(18px) rotate(6deg); }
  .phones { padding-bottom: 18px; }
  .posts { gap: 8px; }
  .posts img { width: 19%; border-width: 3px; border-radius: 10px; }
  .value { padding: 24px; }
  .contact-card { padding: 24px; }
  dl.details { grid-template-columns: 1fr; gap: 0; }
  dl.details dd { margin-bottom: 10px; }
}
