/* Substract Apps website */

@font-face {
  font-family: "Anek Latin";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  font-stretch: 75% 125%;
  src: url(fonts/anek-latin-latin-wdth-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Anek Latin";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  font-stretch: 75% 125%;
  src: url(fonts/anek-latin-latin-ext-wdth-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Anek Devanagari";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url(fonts/anek-devanagari-site.woff2) format("woff2");
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF;
}

:root {
  --ink: #262a5c;
  --text: #2e3150;
  --muted: #5d6284;
  --paper: #ffffff;
  --wash: #f1f2f8;
  --line: #dfe2ec;
  --marigold: #f4a81d;
  --accent: #262a5c;
  --wrap: 1120px;
  --font: "Anek Latin", "Anek Devanagari", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--paper);
  font-stretch: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.15; font-weight: 650; }
p { margin: 0 0 1em; }
code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .85em; overflow-wrap: anywhere; }
[lang="hi"], .hi { font-family: "Anek Devanagari", var(--font); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { top: 12px; }

/* Header */
.site-head { border-bottom: 1px solid var(--line); background: var(--paper); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-bar { width: 26px; height: 9px; border-radius: 5px; background: var(--marigold); flex: none; }
.brand-name { font-stretch: 75%; font-weight: 700; font-size: 1.45rem; letter-spacing: .01em; line-height: 1; }
.site-nav { display: flex; gap: 22px; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 1.02rem; }
.site-nav a:hover { color: var(--ink); text-decoration: underline; }

/* Buttons */
.btn {
  display: inline-block; background: var(--ink); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 1.05rem; padding: .7em 1.25em; border-radius: 10px;
}
.btn:hover { background: #1b1e47; }
.btn-light { background: #fff; color: var(--accent); }
.btn-light:hover { background: #f4f4f8; }
.btn-line {
  display: inline-block; border: 1.5px solid var(--ink); color: var(--ink); text-decoration: none;
  font-weight: 600; font-size: .98rem; padding: .38em .9em; border-radius: 8px; white-space: nowrap;
}
.btn-line:hover { background: var(--ink); color: #fff; }
.quiet { color: var(--muted); font-size: .95rem; }

/* Home: hero */
.hero { padding: 72px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.hero-title {
  font-stretch: 75%; font-weight: 700; font-size: clamp(3.4rem, 8.4vw, 6.6rem);
  line-height: .9; letter-spacing: -.012em; max-width: 9ch;
}
.struck { list-style: none; padding: 0; margin: 28px 0 26px; display: flex; flex-wrap: wrap; gap: 6px 26px; }
.struck li {
  position: relative; font-stretch: 87.5%; font-weight: 600; font-size: 1.45rem; color: var(--muted); line-height: 1.2;
}
.struck li::after {
  content: ""; position: absolute; left: -4px; right: -4px; top: 50%; height: .15em; margin-top: -.075em;
  background: var(--marigold); border-radius: 4px; transform-origin: left center;
  animation: strike .5s cubic-bezier(.6, 0, .2, 1) both;
}
.struck li:nth-child(1)::after { animation-delay: .35s; }
.struck li:nth-child(2)::after { animation-delay: .5s; }
.struck li:nth-child(3)::after { animation-delay: .65s; }
.struck li:nth-child(4)::after { animation-delay: .8s; }
@keyframes strike { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.lede { font-size: 1.3rem; line-height: 1.45; max-width: 32ch; color: var(--text); margin-bottom: 28px; }

.hero-icons { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px 18px; }
.hero-icons a { display: block; border-radius: 23%; }
.hero-icons img { width: 100%; border-radius: 23%; }

/* Home: sections */
.section-title { font-stretch: 75%; font-weight: 700; font-size: clamp(2.3rem, 4.6vw, 3.3rem); line-height: 1; }
.section-lede { color: var(--muted); font-size: 1.15rem; margin: 12px 0 0; max-width: 52ch; }
.apps { padding: 40px 0 72px; }
.group-title {
  font-size: 1.05rem; font-weight: 600; color: var(--muted); margin: 52px 0 0;
  padding-bottom: 12px; border-bottom: 2px solid var(--ink);
}
.app-list { list-style: none; padding: 0; margin: 0; }
.app-row {
  display: grid; grid-template-columns: 72px 1fr auto; gap: 22px; align-items: center;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.app-row-icon { width: 72px; height: 72px; border-radius: 18px; }
.app-row-name { font-stretch: 87.5%; font-size: 1.55rem; font-weight: 650; }
.app-row-name a { text-decoration: none; }
.app-row-name a:hover { text-decoration: underline; }
.app-row-name .hi { font-stretch: 100%; font-size: 1.05rem; font-weight: 500; color: var(--muted); margin-left: 6px; }
.app-row-line { margin: 4px 0 2px; font-size: 1.08rem; }
.app-row-meta { margin: 0; font-size: .95rem; color: var(--muted); }
.app-row-links { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }

.ways { background: var(--wash); padding: 72px 0; }
.ways-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 36px; }
.ways h3 { font-size: 1.35rem; margin-bottom: 10px; }
.ways p { margin: 0; color: var(--text); }

.contact { padding: 72px 0 80px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; align-items: start; }
.contact p { font-size: 1.25rem; line-height: 1.5; max-width: 40ch; }
.address { color: var(--muted); font-size: 1.05rem !important; }

/* Footer */
.site-foot { background: var(--ink); color: #d9dbef; padding: 56px 0 28px; font-size: 1rem; }
.site-foot a { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.brand-light { color: #fff; margin-bottom: 14px; }
.foot-brand p { max-width: 34ch; }
.foot-h { color: #fff; font-size: 1rem; font-weight: 600; margin-bottom: 12px; }
.foot-list { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 20px; }
.foot-list li { margin-bottom: 6px; break-inside: avoid; }
.foot-list a { text-decoration: none; color: #d9dbef; }
.foot-list a:hover { color: #fff; text-decoration: underline; }
.foot-base { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 36px; padding-top: 20px; }
.foot-base p { margin: 0; font-size: .9rem; color: #aeb2d3; }

/* App page */
.app-hero { background: var(--accent); color: #fff; padding: 28px 0 132px; }
.app-hero :focus-visible { outline-color: #fff; }
.back { color: rgba(255, 255, 255, .85); text-decoration: none; font-size: 1rem; display: inline-block; margin-bottom: 28px; }
.back::before { content: "‹"; margin-right: 6px; }
.back:hover { color: #fff; text-decoration: underline; }
.app-hero-grid { display: grid; grid-template-columns: 128px 1fr; gap: 32px; align-items: center; }
.app-hero-icon { width: 128px; height: 128px; border-radius: 30px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }
.app-title { color: #fff; font-stretch: 75%; font-weight: 700; font-size: clamp(2.8rem, 6vw, 4.6rem); line-height: .95; }
.app-title-hi { font-size: 1.5rem; font-weight: 500; opacity: .85; margin: 6px 0 0; }
.app-tagline { font-size: 1.3rem; line-height: 1.4; margin: 14px 0 22px; max-width: 40ch; }
.app-get { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.soon { display: inline-block; border: 1.5px solid rgba(255, 255, 255, .6); padding: .45em 1em; border-radius: 10px; font-weight: 600; }
.app-facts { opacity: .85; font-size: 1rem; }

.shots { margin-top: -100px; }
.shot-row {
  list-style: none; padding: 0 0 14px; margin: 0; display: flex; gap: 22px;
  overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.shot-row li { flex: 0 0 auto; scroll-snap-align: start; }
.shot-row img {
  width: 240px; border-radius: 22px; background: #fff;
  border: 1px solid rgba(20, 22, 60, .12);
  box-shadow: 0 18px 36px -18px rgba(20, 22, 60, .45);
}

.app-body { padding: 48px 0 80px; }
.app-body-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 64px; align-items: start; }
.app-intro { font-size: 1.35rem; line-height: 1.45; color: var(--ink); max-width: 38ch; margin-bottom: 36px; }
.h-small { font-size: 1.2rem; font-weight: 650; margin: 0 0 14px; }
.app-main .h-small { margin-top: 8px; }
.app-main p { max-width: 60ch; }
.ticks { list-style: none; padding: 0; margin: 0 0 36px; }
.ticks li { position: relative; padding: 9px 0 9px 34px; border-bottom: 1px solid var(--line); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 1.05em; width: 18px; height: 6px; border-radius: 3px; background: var(--accent);
}
.app-side { background: var(--wash); border-radius: 16px; padding: 26px 26px 22px; font-size: 1.02rem; }
.app-side p { margin-bottom: .8em; }
.dots { margin: 0 0 1em; padding-left: 1.2em; }
.dots li { margin-bottom: 4px; }
.side-links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-weight: 600; margin: 18px 0 20px !important; }
.facts { margin: 0; border-top: 1px solid var(--line); padding-top: 14px; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: .95rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }

/* Privacy and terms pages */
.doc { max-width: calc(68ch + 48px); padding-top: 40px; padding-bottom: 88px; }
.doc h1 { font-stretch: 75%; font-weight: 700; font-size: clamp(2.3rem, 5vw, 3.3rem); line-height: 1; }
.doc h2 { font-size: 1.4rem; margin: 2em 0 .6em; }
.doc h3 { font-size: 1.15rem; margin: 1.6em 0 .5em; }
.doc p, .doc li { line-height: 1.65; }
.doc ul { padding-left: 1.25em; margin: 0 0 1em; }
.doc li { margin-bottom: .3em; }
.doc-date { color: var(--muted); margin: 12px 0 28px; }
.doc-short { background: var(--wash); border-left: 5px solid var(--marigold); border-radius: 0 12px 12px 0; padding: 20px 24px 6px; margin: 28px 0 8px; }
.doc-short h2 { margin-top: 0; font-size: 1.2rem; }
.doc-app { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-bottom: 18px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.doc-app-link { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; font-size: 1.1rem; }
.doc-app-link img { width: 40px; height: 40px; border-radius: 10px; }
.doc-tabs { display: flex; gap: 22px; }
.doc-tabs a { text-decoration: none; color: var(--muted); font-weight: 500; padding: 4px 0; border-bottom: 3px solid transparent; }
.doc-tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.doc-tabs a:hover { color: var(--ink); }
.policy-list { list-style: none; padding: 0 !important; }
.policy-list li { display: grid; grid-template-columns: 40px 1fr auto; gap: 16px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); margin: 0 !important; }
.policy-list img { width: 40px; height: 40px; border-radius: 10px; }
.policy-list a:not(.quiet) { font-weight: 600; }

/* Smaller screens */
@media (max-width: 900px) {
  .hero { padding: 48px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-icons { gap: 12px; max-width: 520px; }
  .ways-grid { grid-template-columns: 1fr; gap: 28px; }
  .contact-grid { grid-template-columns: 1fr; gap: 16px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .app-body-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 600px) {
  body { font-size: 1.0625rem; }
  .wrap { padding: 0 18px; }
  .site-nav { gap: 16px; }
  .brand-name { font-size: 1.3rem; }
  .struck li { font-size: 1.25rem; }
  .lede { font-size: 1.18rem; }
  .app-row { grid-template-columns: 56px 1fr; gap: 14px 16px; align-items: start; }
  .app-row-icon { width: 56px; height: 56px; border-radius: 14px; }
  .app-row-name { font-size: 1.35rem; }
  .app-row-name .hi { display: block; margin: 2px 0 0; }
  .app-row-links { grid-column: 2; flex-direction: row; align-items: center; gap: 18px; }
  .app-hero { padding-bottom: 116px; }
  .app-hero-grid { grid-template-columns: 1fr; gap: 18px; }
  .app-hero-icon { width: 88px; height: 88px; border-radius: 22px; }
  .shot-row img { width: 200px; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-list { columns: 2; }
  .policy-list li { grid-template-columns: 36px 1fr auto; gap: 12px; }
}
@media (max-width: 380px) {
  .site-nav a[href$="#contact"] { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .struck li::after { animation: none; }
}
