/* Maya's site.
   Two themes: "Kathmandu morning" (light) and "Kathmandu evening" (dark, the app's own palette).
   The theme follows the system unless the visitor picks one, and nothing is loaded from any other
   origin — no fonts, no scripts, no trackers. The privacy page says so, so it must stay true. */

:root {
  /* Kathmandu morning — warm paper, ink, and a deeper brass that holds contrast on light. */
  --bg: #fbf8f3;
  --bg-tint: #f6f0e6;
  --surface: #ffffff;
  --raised: #f3ece1;
  --line: #e7ddcd;
  --line-soft: #f0e7da;
  --text: #241f1b;
  --muted: #6a5f54;
  --brass: #8a6215;
  --brass-ink: #fffaf0;
  --tika: #c03127;
  --shadow: 0 1px 2px rgba(60, 45, 25, 0.05), 0 12px 32px rgba(60, 45, 25, 0.07);
  --shadow-lift: 0 2px 6px rgba(60, 45, 25, 0.07), 0 20px 44px rgba(60, 45, 25, 0.1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17141b;
    --bg-tint: #1c1822;
    --surface: #211d26;
    --raised: #2b2631;
    --line: #3a3440;
    --line-soft: #2e2835;
    --text: #f1ebe3;
    --muted: #a69e9a;
    --brass: #d6a84e;
    --brass-ink: #1d1706;
    --tika: #d8453a;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
    --shadow-lift: 0 2px 6px rgba(0, 0, 0, 0.35), 0 20px 44px rgba(0, 0, 0, 0.45);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #17141b;
  --bg-tint: #1c1822;
  --surface: #211d26;
  --raised: #2b2631;
  --line: #3a3440;
  --line-soft: #2e2835;
  --text: #f1ebe3;
  --muted: #a69e9a;
  --brass: #d6a84e;
  --brass-ink: #1d1706;
  --tika: #d8453a;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
  --shadow-lift: 0 2px 6px rgba(0, 0, 0, 0.35), 0 20px 44px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 "Mukta", "Noto Sans Devanagari", ui-sans-serif, system-ui, -apple-system,
        "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--brass); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { opacity: 0.8; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.87em;
  background: var(--raised);
  padding: 2px 7px;
  border-radius: 7px;
  overflow-wrap: anywhere;
}

:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 4px; }

/* ---------------- navigation ---------------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 16px 28px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  width: 100%; max-width: 1040px; margin: 0 auto;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 19px; font-weight: 600; letter-spacing: -0.01em;
  color: var(--text); text-decoration: none;
}
.brand img { border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--text); opacity: 1; }

.theme-toggle {
  display: grid; place-items: center;
  width: 36px; height: 36px; padding: 0;
  border: 1px solid var(--line); border-radius: 50%;
  background: var(--surface); color: var(--muted); cursor: pointer;
}
.theme-toggle:hover { color: var(--text); border-color: var(--brass); }
.theme-toggle svg { width: 17px; height: 17px; display: block; }
/* Sun in light mode, moon in dark — each theme shows the one you would switch *to*. */
.theme-toggle .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: block; }
}
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }

/* ---------------- layout ---------------- */
main { max-width: 1040px; margin: 0 auto; padding: 0 28px; }
section { padding: 84px 0; }
section + section { border-top: 1px solid var(--line-soft); }

h1 {
  font-size: clamp(38px, 6.2vw, 62px); line-height: 1.04; font-weight: 700;
  letter-spacing: -0.035em; margin: 0 0 20px;
}
h2 {
  font-size: clamp(26px, 3.6vw, 38px); line-height: 1.15; font-weight: 600;
  letter-spacing: -0.025em; margin: 0 0 14px;
}
h3 { font-size: 18px; font-weight: 600; margin: 0 0 7px; letter-spacing: -0.01em; }
p { margin: 0 0 16px; }

.lede { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 60ch; }
.fineprint { font-size: 14.5px; color: var(--muted); }
.section-head { max-width: 62ch; margin-bottom: 40px; }
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--brass); margin: 0 0 12px;
}

/* ---------------- hero ---------------- */
.hero { text-align: center; padding-top: 72px; padding-bottom: 64px; }
.hero .lede { margin: 0 auto 30px; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 26px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font-size: 16px; font-weight: 500; text-decoration: none; cursor: pointer;
  box-shadow: var(--shadow); transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-lift); opacity: 1; }
.btn svg { width: 18px; height: 18px; }
.btn.primary { background: var(--brass); border-color: transparent; color: var(--brass-ink); font-weight: 600; }

.shot {
  margin: 52px 0 0; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-lift);
}
.shot img { width: 100%; height: auto; display: block; }
.caption { margin-top: 14px; font-size: 14.5px; color: var(--muted); text-align: center; }

/* ---------------- cards ---------------- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 26px; box-shadow: var(--shadow);
}
.card p { color: var(--muted); margin: 0; font-size: 15.5px; }
.card-icon {
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px;
  border-radius: 12px; background: var(--raised); color: var(--brass);
}
.card-icon svg { width: 20px; height: 20px; }

/* ---------------- steps ---------------- */
.steps-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px; }
.step-n {
  display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 14px;
  border-radius: 50%; background: var(--brass); color: var(--brass-ink);
  font-weight: 700; font-size: 15px;
}
.step p { color: var(--muted); margin: 0; font-size: 15.5px; }

/* ---------------- tones / languages ---------------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.quote {
  background: var(--bg-tint); border: 1px solid var(--line-soft);
  border-radius: 18px; padding: 24px;
}
.quote .label {
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--brass); margin-bottom: 10px;
}
.quote blockquote { margin: 0; font-size: 17.5px; line-height: 1.5; }
.quote .lang { margin-top: 12px; font-size: 14px; color: var(--muted); }

/* ---------------- privacy ---------------- */
.ticks { list-style: none; padding: 0; margin: 0; max-width: 64ch; }
.ticks li { position: relative; padding-left: 32px; margin-bottom: 14px; color: var(--muted); }
.ticks li strong { color: var(--text); font-weight: 600; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--brass); opacity: 0.16;
}
.ticks li::after {
  content: ""; position: absolute; left: 5.5px; top: 12px;
  width: 4px; height: 8px; border: solid var(--brass);
  border-width: 0 1.9px 1.9px 0; transform: rotate(45deg);
}

.note {
  background: var(--bg-tint); border: 1px solid var(--line-soft);
  border-left: 3px solid var(--brass); border-radius: 14px;
  padding: 20px 24px; margin: 26px 0; max-width: 66ch;
}
.note h3 { margin-bottom: 8px; }
.note p { color: var(--muted); font-size: 15.5px; }
.note p:last-child { margin-bottom: 0; }

.steps { padding-left: 22px; max-width: 60ch; }
.steps li { margin-bottom: 10px; }

/* ---------------- closing call to action ---------------- */
.closing {
  text-align: center; background: var(--bg-tint);
  border: 1px solid var(--line-soft); border-radius: 26px;
  padding: 64px 32px; margin: 84px 0;
}
.closing h2 { margin-bottom: 12px; }
.closing .lede { margin: 0 auto 28px; }

/* ---------------- signup ---------------- */
.signup { display: flex; gap: 10px; flex-wrap: wrap; max-width: 520px; margin-bottom: 12px; }
.signup input {
  flex: 1 1 240px; padding: 13px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font: inherit; font-size: 16px;
}
.signup input::placeholder { color: var(--muted); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------------- footer ---------------- */
footer { border-top: 1px solid var(--line-soft); background: var(--bg-tint); }
.footer-inner {
  max-width: 1040px; margin: 0 auto; padding: 44px 28px 56px;
  display: flex; flex-wrap: wrap; gap: 26px; justify-content: space-between; align-items: flex-start;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; margin-bottom: 10px; }
.footer-brand img { border-radius: 8px; }
.footer-col p { color: var(--muted); font-size: 15px; margin: 0 0 6px; max-width: 42ch; }
.footer-links { display: flex; flex-direction: column; gap: 9px; font-size: 15px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); opacity: 1; }
.footer-title {
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text); margin-bottom: 4px;
}

/* ---------------- prose pages (privacy, guides) ---------------- */
.prose { max-width: 70ch; padding: 44px 0 72px; }
.prose h1 { font-size: clamp(32px, 5vw, 46px); }
.prose h2 { margin-top: 44px; font-size: clamp(22px, 3vw, 28px); }
.prose h3 { margin-top: 28px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 9px; }
.prose blockquote {
  margin: 22px 0; padding: 16px 22px;
  background: var(--bg-tint); border-left: 3px solid var(--brass); border-radius: 12px;
  color: var(--muted);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose table {
  border-collapse: collapse; width: 100%; margin: 20px 0; font-size: 15.5px;
  display: block; overflow-x: auto;
}
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; vertical-align: top; }
.prose th { background: var(--raised); font-weight: 600; }
.prose pre {
  background: var(--raised); border: 1px solid var(--line);
  padding: 16px 18px; border-radius: 12px; overflow-x: auto;
}
.prose pre code { background: none; padding: 0; }
.prose img { max-width: 100%; height: auto; border-radius: 12px; }

/* ---------------- narrow screens ---------------- */
@media (max-width: 720px) {
  section { padding: 60px 0; }
  .hero { padding-top: 48px; }
  .closing { padding: 44px 24px; margin: 60px 0; border-radius: 20px; }
}
@media (max-width: 560px) {
  .nav { padding: 12px 18px; }
  .nav-links { gap: 14px; font-size: 14px; }
  main { padding: 0 20px; }
  .cta .btn { flex: 1 1 100%; justify-content: center; }
  .footer-inner { flex-direction: column; gap: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ============================================================
   Hero mockup: a small macOS screen with Maya's check-in card
   sitting at the top, exactly as the app draws it on a notched
   Mac — the card and the notch are both black, so they merge.
   Built in CSS rather than a screenshot: crisp at any size.
   ============================================================ */
.screen {
  position: relative;
  max-width: 880px; margin: 0 auto;
  aspect-ratio: 16 / 10;
  border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 18% 8%, #4a4270 0%, transparent 55%),
    radial-gradient(130% 100% at 85% 20%, #2f5a70 0%, transparent 55%),
    linear-gradient(165deg, #2b2a49 0%, #16151f 100%);
  box-shadow: var(--shadow-lift);
}

.menubar {
  position: absolute; inset: 0 0 auto 0; height: 30px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(8px);
  font-size: 11.5px; color: rgba(255, 255, 255, 0.82);
}
.mb-left, .mb-right { display: flex; align-items: center; gap: 14px; }
.mb-right { gap: 12px; }
.mb-dot { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,0.75); }
.mb-item { font-weight: 500; opacity: 0.85; }
.mb-right svg { width: 14px; height: 14px; opacity: 0.85; }
/* Maya lives here — the one menu-bar item that is the point of the picture. */
.mb-maya { display: grid; place-items: center; width: 17px; height: 17px; }
.mb-maya svg { width: 15px; height: 15px; opacity: 1; }

/* The card. Same shape the app uses: flush with the top, rounded only below. */
.peek-demo {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(74%, 470px);
  background: #08070a;
  border-radius: 0 0 22px 22px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
  padding: 7px 18px 15px;
  display: grid; grid-template-columns: auto 1fr auto; gap: 0 13px;
  align-items: start;
  color: #f3ede5;
}
.peek-demo .pd-face { grid-row: 1 / span 3; align-self: center; width: 44px; height: 44px; }
.peek-demo .pd-face svg { width: 100%; height: 100%; display: block; }
.pd-from { grid-column: 2; display: flex; align-items: baseline; gap: 5px; font-size: 11.5px; line-height: 1.6; }
.pd-name { font-weight: 600; color: #d6a84e; }
.pd-when { opacity: 0.55; }
.pd-text { grid-column: 2 / span 2; font-size: 14.5px; font-weight: 500; line-height: 1.35; margin: 1px 0 8px; }
.pd-actions { grid-column: 2 / span 2; display: flex; gap: 6px; flex-wrap: wrap; }
.pd-actions span {
  font-size: 11.5px; padding: 3px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.12); color: #f3ede5;
}
.pd-actions .yes { background: #d6a84e; color: #1d1706; font-weight: 600; }
.pd-x {
  grid-column: 3; grid-row: 1; display: grid; place-items: center;
  width: 19px; height: 19px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.1); color: #f3ede5; opacity: 0.7;
}
.pd-x svg { width: 11px; height: 11px; }

/* A window behind, so the card clearly sits over whatever you were doing. */
.win {
  position: absolute; left: 9%; top: 34%; width: 46%; height: 52%;
  border-radius: 12px; background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(3px);
  padding: 12px;
}
.win .bar { display: flex; gap: 5px; margin-bottom: 12px; }
.win .bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.28); }
.win .line { height: 7px; border-radius: 4px; background: rgba(255,255,255,0.14); margin-bottom: 9px; }
.win .line.s { width: 55%; }
.win .line.m { width: 78%; }
.win .line.l { width: 92%; }

@media (max-width: 720px) {
  .screen { aspect-ratio: 4 / 3; }
  .peek-demo { width: min(88%, 470px); padding: 6px 13px 12px; }
  .pd-text { font-size: 13px; }
  .win { display: none; }
}

/* ---------------- install: two cards, side by side ---------------- */
.install-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.install-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 20px; padding: 30px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.install-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.install-head svg { width: 26px; height: 26px; color: var(--text); }
.install-head h3 { margin: 0; font-size: 20px; }
.install-meta { font-size: 14px; color: var(--muted); margin: 0 0 20px; }
.install-card ol { margin: 0 0 22px; padding-left: 20px; }
.install-card ol li { margin-bottom: 11px; color: var(--muted); }
.install-card ol li strong { color: var(--text); font-weight: 600; }
.install-card .btn { align-self: flex-start; margin-top: auto; }
.install-foot { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
