/* AntiWatch: black, white and one teal. Dark first, light when the device asks. */
:root {
  color-scheme: dark;
  --bg: #000;
  --surface: #0b0f10;
  --line: #1e2829;
  --line-strong: #37484a;
  --text: #f3f7f7;
  --muted: #a0b0af;
  --teal: #18c7c0;
  --teal-text: #2bd3cc;
  --teal-hover: #4fe0d9;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  /* One place to swap in the headline font once it is chosen. */
  --display: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans Devanagari", sans-serif;
  font: 100%/1.6 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans Devanagari", sans-serif;
}
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #fff;
    --surface: #f3f6f6;
    --line: #e0e7e7;
    --line-strong: #b4c3c2;
    --text: #081011;
    --muted: #4a5a59;
    --teal-text: #08706b;
    --teal-hover: #14b3ac;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .22em; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--teal-text); outline-offset: 4px; border-radius: 4px; }
h1, h2, h3, h4, p, ul, dl, dd, figure { margin: 0; padding: 0; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.6vw, 4.9rem); letter-spacing: -.04em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); letter-spacing: -.03em; }
h3 { font-size: 1.3rem; letter-spacing: -.015em; }
h4 { font-size: 1.05rem; }
:lang(ne) h1, :lang(ne) h2, :lang(ne) h3 { letter-spacing: normal; line-height: 1.35; }
.wrap { width: min(100%, 76rem); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 52rem; }
.skip { position: fixed; z-index: 20; top: .5rem; left: .5rem; transform: translateY(-200%); background: var(--teal); color: #000; padding: .65rem 1rem; border-radius: .5rem; }
.skip:focus { transform: none; }

/* Header and footer */
.site-header { border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 2rem; min-height: 4.75rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; min-height: 2.75rem; font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: -.02em; text-decoration: none; }
svg.mark, svg.hero-mark, svg.follow-mark { fill: none; stroke: var(--teal); stroke-width: 61; stroke-linecap: round; stroke-linejoin: round; }
svg.mark { width: 1.9rem; height: 1.66rem; }
.site-nav { display: flex; gap: 1.75rem; }
.header-actions { display: flex; align-items: center; gap: 1.25rem; margin-left: auto; }
.site-nav a, .footer-links a { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: .94rem; color: var(--muted); text-decoration: none; }
.site-nav a:hover, .footer-links a:hover { color: var(--text); text-decoration: underline; }
.site-nav a[aria-current], .footer-links a[aria-current] { color: var(--text); }
.site-footer { border-top: 1px solid var(--line); padding-block: 2.5rem 3rem; }
.footer-row { display: grid; gap: 1.25rem; justify-items: start; }
.footer-row p { margin-top: .25rem; font-size: .9rem; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }

/* Buttons and links */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: .7rem 1.4rem; border-radius: 999px; background: var(--teal); color: #001514; font-weight: 650; line-height: 1.3; text-align: center; text-decoration: none; transition: background .17s ease; }
.button:hover { background: var(--teal-hover); }
.button.small { min-height: 2.6rem; padding: .4rem 1rem; font-size: .9rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.75rem; margin-top: 2rem; }
.text-link { padding-block: .65rem; color: var(--teal-text); font-weight: 600; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 3rem; padding-block: clamp(3rem, 9vw, 8rem); }
.hero h1 { margin-block: 1.1rem 1.4rem; }
.hero h1 span { display: block; color: var(--teal-text); }
.status { color: var(--muted); font-size: .95rem; font-weight: 600; }
.status::before { content: ""; display: inline-block; width: .5rem; height: .5rem; margin-right: .6rem; border-radius: 50%; border: 2px solid var(--teal); vertical-align: .08em; }
.lead { max-width: 46ch; color: var(--muted); font-size: clamp(1.08rem, 1.7vw, 1.3rem); }
svg.hero-mark { width: clamp(9rem, 22vw, 17rem); height: auto; }

/* The one signature movement: the eye closes. Without motion it is simply closed. */
.eye-open { opacity: 0; }
.iris { fill: var(--teal); stroke: none; }
@media (prefers-reduced-motion: no-preference) {
  .eye-open { transform-box: view-box; transform-origin: 512px 480px; animation: eye-close 1.8s ease-in both; }
  .eye-closed { animation: eye-rest 1.8s both; }
}
@keyframes eye-close {
  0%, 62% { opacity: 1; transform: scaleY(1); }
  88% { opacity: 1; transform: scaleY(.08); }
  100% { opacity: 0; transform: scaleY(.08); }
}
@keyframes eye-rest { 0%, 87% { opacity: 0; } 100% { opacity: 1; } }

/* Sections */
.section { padding-block: clamp(3.5rem, 8vw, 7rem); border-top: 1px solid var(--line); scroll-margin-top: 1rem; }
.tinted { background: var(--surface); }
.section-head { display: grid; gap: .8rem; align-content: start; max-width: 42rem; }
.section-head p { max-width: 46ch; color: var(--muted); font-size: 1.08rem; }
.section > .wrap > .section-head { margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.rows > div { padding-block: 1.35rem; border-top: 1px solid var(--line); }
.rows > div:first-child { padding-top: 0; border-top: 0; }
.rows dt { font-family: var(--display); font-weight: 650; font-size: 1.2rem; }
.rows dd { margin-top: .3rem; color: var(--muted); }

/* App screenshots (shown once real ones exist) */
.screens { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2rem); }
.frame { width: 100%; height: auto; border: 1px solid var(--line-strong); border-radius: clamp(1.4rem, 3vw, 2.2rem); }
.screens p { margin-top: .85rem; text-align: center; font-weight: 600; }

/* Send quality */
.options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.options li { padding-top: 1.4rem; border-top: 2px solid var(--line-strong); }
.options li:not(:first-child) { border-top-color: var(--teal); }
.options .summary { margin-block: .35rem .6rem; color: var(--teal-text); font-weight: 600; }
.options p:last-child { color: var(--muted); }
.note { max-width: 62ch; margin-top: 2rem; color: var(--muted); font-size: .95rem; }
.more { margin-top: 2rem; }

/* Privacy */
.sides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; align-items: stretch; }
.side { padding: clamp(1.35rem, 3vw, 2.25rem); border: 1px solid var(--line); border-radius: 1.25rem; background: var(--bg); }
.hidden-side { border-color: var(--teal); }
.side h3 { margin-bottom: .75rem; }
.side li { padding-block: .85rem; border-top: 1px solid var(--line); }
.side .note { margin-top: .5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.also-title { margin-block: clamp(2.5rem, 5vw, 4rem) 1.5rem; }
.also { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 3rem; }
.also p { margin-top: .35rem; color: var(--muted); }

/* Nepal, questions, follow */
.statement { max-width: 50rem; }
.statement p { margin-top: 1.25rem; font-size: clamp(1.25rem, 2.6vw, 1.75rem); line-height: 1.45; }
.faq details { border-top: 1px solid var(--line); }
.faq details:first-child { border-top: 0; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 3.5rem; padding-block: .8rem; font-weight: 650; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--teal-text); font-size: 1.5rem; font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq p { padding-bottom: 1.2rem; max-width: 58ch; color: var(--muted); }
.follow { display: grid; justify-items: center; gap: 1.1rem; text-align: center; }
.follow p { max-width: 44ch; color: var(--muted); }
.follow .button { margin-top: .75rem; }
svg.follow-mark { width: 4.5rem; height: auto; }

/* Other pages */
.article-intro { padding-block: clamp(3rem, 7vw, 5.5rem); border-bottom: 1px solid var(--line); }
.article-intro h1 { font-size: clamp(2.3rem, 5.5vw, 3.8rem); margin-bottom: 1rem; }
.article-body { padding-block: 1.5rem 4rem; }
.article-body section { padding-block: 2.25rem; border-top: 1px solid var(--line); }
.article-body section:first-child { border-top: 0; }
.article-body h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: .6rem; }
.article-body p { color: var(--muted); }
.article-body a { display: inline-block; margin-top: .75rem; padding-block: .4rem; color: var(--teal-text); font-weight: 600; }
/* Legal pages */
.legal { padding-block: 2.5rem 4.5rem; color: var(--muted); }
.legal h2 { margin-block: 2.5rem .75rem; font-size: clamp(1.3rem, 2.6vw, 1.65rem); color: var(--text); }
.legal h2:first-child { margin-top: 0; }
.legal p { margin-bottom: .9rem; }
.legal ul { margin: 0 0 1rem; padding-left: 1.25rem; list-style: disc; }
.legal li { margin-bottom: .5rem; }
.legal li::marker { color: var(--teal-text); }
.legal strong { color: var(--text); }
.legal a { color: var(--teal-text); }
.legal .date { margin-bottom: 2rem; font-size: .9rem; }

@media (max-width: 61rem) {
  .header-actions .button { display: none; }
  .split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 47rem) {
  .header-row { flex-wrap: wrap; gap: 0 1rem; padding-top: .5rem; }
  .site-nav { order: 3; width: 100%; justify-content: space-between; gap: .75rem; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; padding-top: 2.5rem; }
  svg.hero-mark { order: -1; width: 7.5rem; }
  .screens { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .options, .sides, .also { grid-template-columns: minmax(0, 1fr); }
  .actions .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
