/* SupplyKaro site. The apps' look: red, black and white, Noto Sans. No JavaScript. */

@font-face {
  font-family: 'Noto Sans';
  src: url('/fonts/NotoSans_400Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Noto Sans';
  src: url('/fonts/NotoSans_700Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Noto Sans Devanagari';
  src: url('/fonts/NotoSansDevanagari_400Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Noto Sans Devanagari';
  src: url('/fonts/NotoSansDevanagari_700Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  --red: #b80000;
  --red-dark: #8c0000;
  --red-tint: #fbeaea;
  --ink: #141414;
  --ink-2: #3a3737;
  --muted: #6a6666;
  --paper: #ffffff;
  --tint: #f5f4f2;
  --line: #e3e0dc;
  --wa: #157a3a;
  --wa-dark: #0f5f2c;
  --amber: #7a4d00;
  --amber-tint: #fff1cc;
  --radius: 14px;
  --font: 'Noto Sans', 'Noto Sans Devanagari', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: 20px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--font);
  overflow-x: hidden;
}
html[lang='hi'] body {
  font-family: 'Noto Sans Devanagari', 'Noto Sans', system-ui, sans-serif;
  line-height: 1.75;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
/* `img { display: block }` would otherwise beat the browser's own rule for [hidden]. */
[hidden] {
  display: none !important;
}
a {
  color: var(--red);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--red-dark);
}
:focus-visible {
  outline: 3px solid #1a5fd0;
  outline-offset: 3px;
}
h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  text-wrap: balance;
}
p {
  margin: 0;
}
.wrap {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.narrow {
  max-width: 820px;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  border-radius: 8px;
}
.skip-link:focus {
  top: 12px;
}

/* ---------- Brand and buttons ---------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.01em;
  font-family: 'Noto Sans', sans-serif;
}
.brand:hover {
  color: var(--ink);
}
.mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  border-bottom: 4px solid var(--ink);
  font-family: 'Noto Sans', sans-serif;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn svg {
  flex: none;
}
.btn-small {
  min-height: 40px;
  padding: 6px 14px;
  font-size: 15px;
}
.btn-large {
  min-height: 54px;
  padding: 12px 26px;
  font-size: 18px;
}
.btn-primary {
  background: var(--red);
  color: #fff;
}
.btn-primary:hover {
  background: var(--red-dark);
  color: #fff;
}
.btn-secondary {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--ink);
}
.btn-secondary:hover {
  background: var(--ink);
  color: #fff;
}
.btn-wa {
  background: var(--wa);
  color: #fff;
}
.btn-wa:hover {
  background: var(--wa-dark);
  color: #fff;
}
.btn-on-dark {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.btn-on-dark:hover {
  background: #fff;
  color: var(--red);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(8px);
}
.header-row {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}
.main-nav {
  display: flex;
  gap: 22px;
  margin-left: 12px;
}
.main-nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
}
.main-nav a:hover {
  color: var(--red);
}
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}
.lang-link {
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  padding: 8px 4px;
}
.lang-link[lang='hi'] {
  font-family: 'Noto Sans Devanagari', sans-serif;
}

/* ---------- Hero ---------- */

.hero {
  padding: 56px 0 72px;
  background: linear-gradient(180deg, var(--paper) 0%, var(--tint) 100%);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--red-tint);
  color: var(--red);
  font-weight: 700;
  font-size: 15px;
}
.hero h1 {
  font-size: clamp(38px, 5.4vw, 64px);
  letter-spacing: -0.025em;
  line-height: 1.04;
}
html[lang='hi'] .hero h1 {
  letter-spacing: 0;
  line-height: 1.25;
}
.lead {
  margin: 20px 0 30px;
  font-size: clamp(18px, 1.8vw, 21px);
  color: var(--ink-2);
  max-width: 34em;
}
.hero-visual {
  position: relative;
  padding: 0 0 40px 0;
}
.hero-visual .device-laptop {
  width: 92%;
}
.hero-visual .device-phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 31%;
}

/* ---------- Device frames ---------- */

.device {
  margin: 0;
  background: var(--ink);
  box-shadow:
    0 2px 4px rgba(20, 20, 20, 0.08),
    0 18px 40px rgba(20, 20, 20, 0.18);
}
/* The screenshot sets the frame's size, so it is always shown whole: the frame
   is just a border around it, in proportion to its width. */
.device img {
  width: 100%;
  height: auto;
  background: var(--tint);
}
.device-phone {
  /* A hairline bezel, like an edge-to-edge phone: about 3px at the sizes used here. */
  padding: clamp(2px, 1.2%, 4px);
  border-radius: 10.5% / 4.9%;
}
.device-phone img {
  aspect-ratio: 390 / 844;
  border-radius: 9.6% / 4.5%;
}
.device-laptop {
  padding: clamp(3px, 0.7%, 8px) clamp(3px, 0.7%, 8px) clamp(5px, 1.3%, 14px);
  border-radius: 2.4% 2.4% 1% 1% / 3.8% 3.8% 1.6% 1.6%;
  position: relative;
}
.device-laptop img {
  aspect-ratio: 1440 / 900;
  border-radius: 0.6%;
}
.device-laptop::after {
  content: '';
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: -1.6%;
  height: 2.2%;
  min-height: 6px;
  border-radius: 0 0 14px 14px;
  background: #2b2929;
  transform: translateY(100%);
}

/* Screens that play (public/js/flow.js): steps stacked in one place, one shown at a time. */
.screen {
  position: relative;
  display: grid;
}
.screen > .shot {
  grid-area: 1 / 1;
}
/* Until a screen plays (no JavaScript, reduced motion, not yet in view) only its resting step shows. */
.flow:not(.is-live) .shot:not(.is-on) {
  display: none;
}
.flow.is-live .shot {
  opacity: 0;
  transform: translateY(1.2%);
  transition:
    opacity 360ms cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 360ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.flow.is-live .shot.is-on {
  opacity: 1;
  transform: none;
}
.flow .shot + .shot {
  background: none;
}
/* The touch: a ring where a person taps, just before the next step. */
.tap {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 15%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  border: 3px solid rgba(184, 0, 0, 0.9);
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.55);
  opacity: 0;
  pointer-events: none;
}
.device-laptop .tap {
  width: 3.4%;
  border-width: 2px;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.55);
}
.tap.is-tapping {
  animation: sk-tap 520ms ease-out;
}
@keyframes sk-tap {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  35% {
    opacity: 1;
    transform: scale(1);
  }
  70% {
    opacity: 1;
    transform: scale(0.86);
  }
  100% {
    opacity: 0;
    transform: scale(1.3);
  }
}
@media (prefers-reduced-motion: reduce) {
  .flow.is-live .shot {
    transition: none;
  }
}

/* ---------- Facts ---------- */

.facts {
  background: var(--ink);
  color: #fff;
}
.facts-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 0 auto;
  padding-block: 28px;
  list-style: none;
}
.facts-row li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.facts-row strong {
  color: #ff6b5e;
  font-size: 30px;
  line-height: 1.1;
}
.facts-row span {
  color: #e6e2df;
  font-size: 15px;
}

/* ---------- Sections ---------- */

.section {
  padding: 88px 0;
}
.section-tint {
  background: var(--tint);
}
.section-title {
  font-size: clamp(30px, 3.8vw, 44px);
  letter-spacing: -0.02em;
  max-width: 20em;
}
html[lang='hi'] .section-title {
  letter-spacing: 0;
  line-height: 1.3;
}
.section-lead {
  margin-top: 14px;
  font-size: 19px;
  color: var(--ink-2);
}

/* Features: text beside its screenshot, sides alternating. */
.features {
  display: flex;
  flex-direction: column;
  gap: 80px;
  margin-top: 64px;
}
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 64px;
  align-items: center;
}
.feature-phone {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
}
.feature.flip .feature-text {
  order: 2;
}
.feature .device-phone {
  width: min(250px, 100%);
  justify-self: center;
}
/* Phone-width twins of laptop screenshots, for screens where a laptop picture can't be read.
   Hidden images are not downloaded (they are lazy). */
.only-narrow {
  display: none;
}
.feature-num {
  display: block;
  margin-bottom: 10px;
  color: var(--red);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.12em;
}
.feature h3 {
  font-size: clamp(26px, 2.8vw, 34px);
  letter-spacing: -0.015em;
}
html[lang='hi'] .feature h3 {
  letter-spacing: 0;
  line-height: 1.35;
}
.feature p {
  margin-top: 14px;
  font-size: 18px;
  color: var(--ink-2);
  max-width: 30em;
}

/* Apps */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 48px;
}
.app-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 24px 26px;
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.app-card .device-phone {
  width: min(220px, 70%);
  margin: 0 auto 14px;
}
.app-card h3 {
  font-size: 22px;
}
.app-card p {
  color: var(--ink-2);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.step {
  position: relative;
  padding-top: 8px;
}
.step-num {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 22px;
}
.step h3 {
  font-size: 22px;
}
.step p {
  margin-top: 8px;
  color: var(--ink-2);
}

/* Pricing */
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.plan {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--radius);
}
.plan-featured {
  border-color: var(--red);
  box-shadow: 0 14px 34px rgba(184, 0, 0, 0.12);
}
.plan h3 {
  font-size: 24px;
}
.plan-shops {
  color: var(--muted);
  font-weight: 700;
}
.plan-price {
  margin: 10px 0 18px;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.plan-price small {
  font-size: 17px;
  color: var(--muted);
  letter-spacing: 0;
}
.plan-ask {
  font-size: 26px;
  letter-spacing: 0;
}
.plan .btn {
  margin-top: auto;
}
.included {
  margin-top: 36px;
  padding: 28px;
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.included h3 {
  font-size: 20px;
}
.included ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 28px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.included li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.included li svg {
  margin-top: 4px;
  color: var(--wa);
}
.fine {
  margin-top: 18px;
  color: var(--muted);
  font-size: 15px;
}

/* FAQ */
.faq {
  margin-top: 36px;
  border-top: 2px solid var(--ink);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  position: relative;
  padding: 20px 44px 20px 0;
  font-weight: 700;
  font-size: 19px;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--red);
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
}
.faq-item[open] summary::after {
  content: '−';
}
.faq-item p {
  padding: 0 0 22px;
  color: var(--ink-2);
  max-width: 44em;
}

/* Closing band */
.closing {
  padding: 84px 0;
  background: var(--red);
  color: #fff;
  text-align: center;
}
.closing h2 {
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.02em;
}
html[lang='hi'] .closing h2 {
  letter-spacing: 0;
  line-height: 1.3;
}
.closing p {
  margin: 14px auto 30px;
  font-size: 19px;
  max-width: 32em;
}
.closing .cta-row {
  justify-content: center;
}
.closing .btn-wa {
  background: #fff;
  color: var(--wa-dark);
}
.closing .btn-wa:hover {
  background: #e9f5ed;
  color: var(--wa-dark);
}
.closing .btn-primary {
  background: #fff;
  color: var(--red);
}
.closing .btn-primary:hover {
  background: #fde9e9;
  color: var(--red-dark);
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #d9d5d2;
  font-size: 15px;
}
.site-footer a {
  color: #fff;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 32px;
  padding-block: 48px 28px;
}
.footer-grid p {
  margin-top: 10px;
  max-width: 40em;
}
.brand-footer {
  color: #fff;
}
.brand-footer:hover {
  color: #fff;
}
.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-base {
  padding-block: 18px 28px;
  border-top: 1px solid #333;
  color: #a9a4a0;
}

/* Legal pages */
.legal {
  padding-block: 56px 88px;
}
.legal h1 {
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: -0.02em;
}
.legal .updated {
  margin: 8px 0 28px;
  color: var(--muted);
}
.legal h2 {
  margin: 36px 0 10px;
  font-size: 22px;
}
.legal p,
.legal li {
  color: var(--ink-2);
}
.legal p + p {
  margin-top: 12px;
}
.legal ul {
  margin: 10px 0 0;
  padding-left: 22px;
}
.legal li + li {
  margin-top: 6px;
}

/* 404 */
.not-found {
  padding: 120px 0;
  text-align: center;
}
.not-found h1 {
  font-size: 44px;
}
.not-found p {
  margin: 14px 0 28px;
  color: var(--ink-2);
}
.not-found .cta-row {
  justify-content: center;
}

/* ---------- Smaller screens ---------- */

@media (max-width: 980px) {
  .main-nav {
    display: none;
  }
  .hero-grid,
  .feature,
  .feature-phone {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero {
    padding-top: 36px;
  }
  .hero-visual {
    max-width: 640px;
  }
  .feature.flip .feature-text {
    order: 0;
  }
  .feature {
    gap: 32px;
  }
  .features {
    gap: 72px;
  }
  .facts-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .apps-grid,
  .steps,
  .plans {
    grid-template-columns: minmax(0, 1fr);
  }
  .apps-grid {
    max-width: 520px;
  }
  .plans {
    max-width: 520px;
  }
}

@media (max-width: 760px) {
  .only-wide {
    display: none;
  }
  .only-narrow {
    display: block;
  }
  .hero-visual {
    padding: 0;
    margin-inline: auto;
  }
  .hero-visual .device-phone {
    position: static;
    width: min(270px, 72vw);
    margin-inline: auto;
  }
}

@media (max-width: 560px) {
  :root {
    --gutter: 16px;
  }
  body {
    font-size: 16px;
  }
  .header-row {
    gap: 10px;
    min-height: 60px;
  }
  .brand {
    font-size: 19px;
  }
  .btn-small span {
    display: none;
  }
  .btn-small {
    width: 40px;
    padding: 0;
  }
  .section {
    padding: 64px 0;
  }
  .cta-row .btn {
    width: 100%;
  }
  .included ul {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .facts-row strong {
    font-size: 24px;
  }
}
