/* Umang Labs website. White-only theme, system fonts, no external requests. */

:root {
  --bg: #ffffff;
  --ink: #0f1115;
  --ink-2: #353a46;
  --muted: #5b6170;
  --line: #e8eaee;
  --line-strong: #d4d8df;
  --tint: #f5f6f8;
  --spark: #ffc24b;
  --focus: #3a57e8;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgba(15, 17, 21, 0.04), 0 8px 24px rgba(15, 17, 21, 0.06);
  --shadow-lg: 0 2px 6px rgba(15, 17, 21, 0.05), 0 24px 56px rgba(15, 17, 21, 0.12);
  --container: 1120px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", "Noto Sans Devanagari", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.18em; -webkit-tap-highlight-color: rgba(15, 17, 21, 0.08); }
p, ul, ol, figure { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.12; letter-spacing: -0.025em; text-wrap: balance; }

a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 10px;
}

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 12px; }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 44px;
  min-height: 44px;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.brand img { width: 30px; height: 30px; }

.nav { display: flex; gap: 2px; }
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.nav a:hover { background: var(--tint); color: var(--ink); }

/* Buttons, chips, links */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #262a33; transform: translateY(-1px); }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink); transform: translateY(-1px); }
.btn-soon { background: var(--tint); color: var(--ink-2); border-color: var(--line); cursor: default; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--ink-2);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
}
.chip-outline { background: #fff; border: 1px solid var(--line-strong); }

.text-link { font-weight: 600; }
.text-link:hover { text-decoration-thickness: 2px; }

.kicker {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.muted { color: var(--muted); }

/* Hero */

.hero { padding: clamp(56px, 9vw, 112px) 0 clamp(56px, 8vw, 96px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 0.85rem;
  font-weight: 600;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--spark); }

.hero h1 {
  margin: 22px 0;
  font-size: clamp(2.6rem, 6.2vw, 4.5rem);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1.04;
}
.lead { max-width: 36rem; color: var(--muted); font-size: clamp(1.1rem, 1.6vw, 1.28rem); line-height: 1.6; }

.hero-visual { position: relative; display: flex; justify-content: center; }

.phone {
  /* Never taller than ~85% of the screen: matters on phones held sideways. */
  width: min(290px, 72vw, calc((85vh - 20px) * 0.5625 + 20px));
  width: min(290px, 72vw, calc((85svh - 20px) * 0.5625 + 20px));
  padding: 10px;
  border-radius: 46px;
  background: var(--ink);
  box-shadow: var(--shadow-lg);
}
.phone img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 36px; background: #fff; }

.float-card {
  position: absolute;
  left: max(0px, calc(50% - 250px));
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px 10px 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  transition: transform 0.2s ease;
}
.float-card:hover { transform: translateY(-2px); }
.float-card img { width: 48px; height: 48px; border-radius: 12px; }
.float-card strong { display: block; font-size: 0.98rem; line-height: 1.2; }
.float-card small { color: var(--muted); font-size: 0.82rem; }

/* Sections */

.section { padding: clamp(64px, 9vw, 112px) 0; border-top: 1px solid var(--line); }
.section-head { max-width: 42rem; margin-bottom: 44px; }
.section h2 { margin-top: 12px; font-size: clamp(2rem, 4vw, 2.85rem); letter-spacing: -0.035em; }
.section-head > p:last-child { margin-top: 16px; color: var(--muted); font-size: 1.12rem; }

/* App cards */

.app-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 24px; }

.app-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 16px 16px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.app-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.app-card:focus-within { border-color: var(--ink); }
.app-card > :not(.app-banner) { margin-inline: 12px; }

.app-banner { width: 100%; aspect-ratio: 1024 / 500; object-fit: cover; border-radius: 18px; }
.app-head { display: flex; align-items: center; gap: 16px; }
.app-icon { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 1px 3px rgba(15, 17, 21, 0.12); }
.app-card h3 { font-size: 1.4rem; }
.app-card h3 a { text-decoration: none; }
.app-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.app-card h3 a:focus-visible { outline: none; }
.app-meta { color: var(--muted); font-size: 0.92rem; }
.app-card > p { color: var(--ink-2); }

.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-weight: 600; }
.card-link .arrow { transition: transform 0.2s ease; }
.app-card:hover .card-link .arrow { transform: translateX(4px); }

.app-card-soon {
  justify-content: center;
  padding: 40px 28px;
  border-style: dashed;
  border-color: var(--line-strong);
  box-shadow: none;
}
.app-card-soon:hover { transform: none; box-shadow: none; }
.app-card-soon > * { margin-inline: 0; }
.app-card-soon > p { color: var(--muted); }
.soon-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
}
.soon-icon svg { width: 28px; height: 28px; }

/* About */

.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; margin-bottom: 56px; }
.about-copy p { color: var(--ink-2); font-size: 1.12rem; }
.about-copy p + p { margin-top: 16px; }

.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); }
.value-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--tint);
}
.value-icon svg { width: 22px; height: 22px; }
.value h3 { margin: 18px 0 8px; font-size: 1.12rem; letter-spacing: -0.015em; }
.value p { color: var(--muted); font-size: 0.98rem; line-height: 1.6; }

/* Contact */

.cta {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: 32px;
  padding: clamp(32px, 6vw, 64px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.cta .lead { margin-top: 16px; }
.cta-side { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.cta-side .btn { margin-bottom: 4px; }
.cta-email { font-weight: 600; word-break: break-all; }

/* Footer */

.site-footer { padding: 56px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 32px; }
.footer-brand p { max-width: 22rem; margin-top: 14px; }
.footer-brand .brand { color: var(--ink); }
.footer-title { margin-bottom: 12px; color: var(--ink); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.footer-grid ul { display: grid; gap: 8px; padding: 0; list-style: none; }
.footer-grid a { text-decoration: none; word-break: break-word; }
.footer-grid a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}

/* App page */

.breadcrumb { padding-top: 28px; color: var(--muted); font-size: 0.9rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--line-strong); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 600; }

.app-hero { padding: 40px 0 clamp(56px, 8vw, 96px); }
.app-hero-icon { width: 96px; height: 96px; border-radius: 24px; box-shadow: var(--shadow); }
.app-hero h1 { margin-top: 24px; font-size: clamp(2.6rem, 5.6vw, 4rem); font-weight: 750; letter-spacing: -0.045em; }
.app-subtitle { display: block; margin-top: 10px; color: var(--ink-2); font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.app-hero .lead { margin-top: 18px; }
.app-hero .chips { margin-top: 22px; }

.gallery {
  display: flex;
  gap: 18px;
  padding: 4px 4px 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.gallery img {
  flex: 0 0 auto;
  width: min(232px, 64vw);
  aspect-ratio: 9 / 16;
  border: 1px solid var(--line);
  border-radius: 22px;
  scroll-snap-align: start;
}
.gallery-hint { margin-top: 4px; color: var(--muted); font-size: 0.9rem; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 0; list-style: none; }
.step { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); }
.step-num {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}
.step h3 { margin: 18px 0 8px; font-size: 1.15rem; letter-spacing: -0.015em; }
.step p { color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.faq { max-width: 800px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  cursor: pointer;
  font-size: 1.08rem;
  font-weight: 600;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--muted); font-size: 1.5rem; font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 46rem; }

.link-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.link-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.link-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.link-card strong { font-size: 1.08rem; }
.link-card span { color: var(--muted); word-break: break-word; }

/* Legal pages */

.legal { padding: 24px 0 clamp(64px, 9vw, 112px); }
.prose { max-width: 780px; }
.prose h1 { margin-top: 20px; font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 750; letter-spacing: -0.04em; }
.prose .meta { margin-top: 12px; color: var(--muted); }
.prose h2 { margin: 2.2em 0 0.7em; font-size: 1.35rem; letter-spacing: -0.02em; }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p { margin-top: 1em; }
.prose ul { margin: 0.8em 0 1em; padding-left: 1.3rem; }
.prose li + li { margin-top: 0.45em; }
.prose a { font-weight: 500; }
.note { margin-top: 28px; padding: 20px 22px; border-radius: 18px; background: var(--tint); color: var(--ink-2); }
.table-wrap { margin: 1em 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.table-wrap th, .table-wrap td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap th { background: var(--tint); font-weight: 600; }

/* Guides */

.guide .intro { margin-top: 24px; color: var(--ink-2); font-size: 1.15rem; }
.guide .intro + p { margin-top: 1em; }
.diagram { margin: 28px 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.diagram svg { display: block; width: 100%; height: auto; }
.diagram figcaption { margin-top: 14px; color: var(--muted); font-size: 0.95rem; }
.tips { display: grid; gap: 14px; margin: 1em 0; padding: 0; list-style: none; counter-reset: tip; }
.prose .tips li + li { margin-top: 0; }
.tips li {
  position: relative;
  padding: 18px 20px 18px 64px;
  border: 1px solid var(--line);
  border-radius: 18px;
  counter-increment: tip;
}
.tips li::before {
  content: counter(tip);
  position: absolute;
  top: 17px;
  left: 18px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
}
.guide .faq { margin-top: 8px; }
.guide-cta {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-top: 48px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.guide-cta img { flex: none; width: 72px; height: 72px; border-radius: 18px; }
.prose .guide-cta h2 { margin: 0 0 8px; font-size: 1.3rem; }
.guide-cta .btn { margin-top: 18px; }
.related { margin-top: 28px; color: var(--ink-2); }

/* 404 */

.not-found { padding: clamp(80px, 14vw, 160px) 0; text-align: center; }
.not-found h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); letter-spacing: -0.04em; }
.not-found p { margin: 16px auto 0; max-width: 30rem; color: var(--muted); }
.not-found .actions { justify-content: center; }

/* Responsive */

@media (max-width: 960px) {
  .values, .features { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .hero-grid, .about-grid, .cta { grid-template-columns: 1fr; }
  .hero-grid, .about-grid { gap: 40px; }
  .steps, .link-cards { grid-template-columns: 1fr; }
  .float-card { left: 0; bottom: 20px; }
}

/* Touch screens and small windows: every standalone link gets a 44 x 44 px target. */
@media (pointer: coarse), (max-width: 760px) {
  .footer-grid ul { gap: 0; }
  .footer-grid a, .breadcrumb a, .text-link {
    display: inline-flex;
    align-items: center;
    min-width: 44px;
    min-height: 44px;
  }
  .breadcrumb { padding-top: 12px; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .values, .features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav a { padding: 0 9px; font-size: 0.9rem; }
  .brand { font-size: 1rem; }
  .btn { width: 100%; }
  .float-card { display: none; }

  /* Edge-to-edge swipe gallery. */
  .gallery {
    margin-inline: -20px;
    padding-inline: 20px;
    scroll-padding-inline: 20px;
    overscroll-behavior-x: contain;
  }

  .guide-cta { flex-direction: column; padding: 22px; }
  .tips li { padding: 16px 16px 16px 58px; }
  .tips li::before { left: 14px; top: 15px; }

  /* The privacy table becomes one labelled card per row. */
  .table-wrap { overflow: visible; border: 0; border-radius: 0; }
  .table-wrap table, .table-wrap tbody, .table-wrap tr, .table-wrap td { display: block; width: 100%; }
  .table-wrap tr:first-child { display: none; }
  .table-wrap tr { margin-bottom: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; }
  .table-wrap td { padding: 4px 0; border: 0; }
  .table-wrap td:first-child { padding-bottom: 8px; color: var(--ink); font-weight: 600; }
  .table-wrap td[data-label]::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
}

@media (max-width: 420px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* Very narrow screens such as foldable cover displays: the logo alone stands for the brand. */
@media (max-width: 340px) {
  .site-header .container { gap: 8px; }
  .brand span { display: none; }
  .nav a { padding: 0 8px; }
}

/* Phones held sideways: keep the header out of the way and use the width. */
@media (orientation: landscape) and (max-height: 520px) {
  html { scroll-padding-top: 16px; }
  .site-header { position: static; }
  .hero, .app-hero { padding: 32px 0 48px; }
  .hero-grid { grid-template-columns: 1.2fr 0.8fr; gap: 32px; }
  .hero h1, .app-hero h1 { font-size: clamp(2rem, 5vw, 3rem); }
  .section { padding: 56px 0; }
  .float-card { display: none; }
}

/* Lift and shadow effects only where a real hover exists, so they don't stick after a tap. */
@media (hover: none) {
  .btn-primary:hover, .btn-secondary:hover, .float-card:hover, .app-card:hover { transform: none; }
  .app-card:hover { border-color: var(--line); box-shadow: none; }
  .app-card:hover .card-link .arrow { transform: none; }
  .link-card:hover { box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
