/* nTher policy pages — one stylesheet, no scripts, nothing loaded from another site.
   Colours, type and spacing are nther.in's (measured from its stylesheet, 1 October 2026); the mark keeps its own
   colours from the app's brand kit (docs/site/BRAND.md). */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/assets/fonts/inter-latin.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: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/instrument-serif-latin.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: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/instrument-serif-italic-latin.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;
}
/* Metric-matched fallbacks, as nther.in declares them, so the page does not jump while the fonts load. */
@font-face {
  font-family: "Inter Fallback";
  src: local(Arial);
  ascent-override: 90.44%;
  descent-override: 22.52%;
  line-gap-override: 0%;
  size-adjust: 107.12%;
}
@font-face {
  font-family: "Instrument Serif Fallback";
  src: local("Times New Roman");
  ascent-override: 117.94%;
  descent-override: 36.93%;
  line-gap-override: 0%;
  size-adjust: 83.94%;
}

:root {
  color-scheme: light;

  /* nther.in */
  --ink-950: #04121a;
  --ink-900: #061923;
  --ink-700: #142b35;
  --slate-deep: #40595f;
  --muted: #566d71;
  --teal: #007d76;
  --teal-600: #00665f;
  --aqua: #68e1d3;
  --mist: #95b6bc;
  --mint: #e2eeea;
  --mint-50: #f4faf9;
  --paper: #fbfdfc;
  --white: #ffffff;
  --line: rgb(20 43 53 / 0.1);

  /* the mark's own colours (the app's brand kit) — used only by the mark and its leaves */
  --mark-ink: #101d30;
  --mark-navy: #102842;
  --mark-blue: #94b8f0;
  --mark-pale: #c7d8f1;
  --mark-warm: #faf7f0;

  --font-sans: "Inter", "Inter Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Instrument Serif", "Instrument Serif Fallback", ui-serif, Georgia, serif;

  --gutter: 16px;
  --radius-card: 24px;
  --header-clear: 104px;
}
@media (min-width: 640px) {
  :root { --gutter: 32px; }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--header-clear);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--slate-deep);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 6px;
}
.on-dark :focus-visible, .site-header :focus-visible { outline-color: var(--aqua); }

.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--white);
  color: var(--ink-900);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---- the header: nther.in's floating pill, always in its scrolled (dark) state ---------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 12px 12px 0;
}
@media (min-width: 640px) {
  .site-header { padding: 12px 20px 0; }
}
.nav {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 8px 8px 14px;
  border-radius: 999px;
  color: var(--white);
  background: rgb(6 25 35 / 0.78);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  backdrop-filter: saturate(140%) blur(16px);
  border: 1px solid rgb(255 255 255 / 0.08);
  box-shadow: 0 14px 36px -14px rgb(4 18 26 / 0.6);
}
@media (min-width: 640px) {
  .nav { padding: 8px 8px 8px 20px; }
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-mark { width: 30px; height: 30px; }
.wordmark {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}
.nav-links {
  display: none;
  align-items: center;
  gap: 2px;
}
.nav-links a {
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  color: rgb(255 255 255 / 0.7);
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover { background: rgb(255 255 255 / 0.06); color: var(--white); }
.nav-links a[aria-current="page"] { background: rgb(255 255 255 / 0.1); color: var(--white); }
.nav-cta {
  display: none;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink-900);
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s;
}
.nav-cta:hover { background: var(--mint); }

.menu { position: static; }
.menu summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 600;
  background: var(--white);
  color: var(--ink-900);
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 16px; height: 16px; }
.menu[open] summary { background: var(--mint); }
.menu-panel {
  position: absolute;
  right: 0;
  left: 0;
  top: calc(100% + 8px);
  padding: 8px;
  border-radius: 24px;
  background: var(--ink-900);
  border: 1px solid rgb(255 255 255 / 0.08);
  box-shadow: 0 24px 48px -16px rgb(4 18 26 / 0.6);
}
.menu-panel a {
  display: block;
  padding: 12px 16px;
  border-radius: 16px;
  color: rgb(255 255 255 / 0.82);
  text-decoration: none;
  font-size: 16px;
}
.menu-panel a:hover, .menu-panel a[aria-current="page"] { background: rgb(255 255 255 / 0.08); color: var(--white); }
.menu-panel .menu-mail { color: var(--aqua); }

@media (min-width: 1000px) {
  .nav-links, .nav-cta { display: inline-flex; }
  .menu { display: none; }
}

/* ---- the hero: nther.in's dark band, with the mark's leaves as the picture ------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink-950);
  color: var(--white);
  padding: 128px 0 64px;
}
@media (min-width: 640px) {
  .hero { padding: 152px 0 88px; }
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 70% 30%, #000 20%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 90% at 70% 30%, #000 20%, transparent 80%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(640px 420px at 88% 18%, rgb(0 125 118 / 0.32), transparent 70%),
    radial-gradient(520px 380px at 8% 120%, rgb(104 225 211 / 0.1), transparent 70%);
}
.hero-art {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  width: 260px;
  height: auto;
  right: -96px;
  top: 76px;
  opacity: 0.16;
}
@media (min-width: 720px) {
  .hero-art { width: 360px; right: -40px; top: auto; bottom: -90px; opacity: 0.45; }
}
@media (min-width: 1100px) {
  .hero-art {
    width: 400px;
    right: max(24px, calc((100vw - 1280px) / 2 + 40px));
    bottom: -110px;
    opacity: 0.88;
  }
}
.hero-inner { max-width: 760px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--teal);
  margin: 0;
}
.eyebrow .leaf { width: 9px; height: 14px; flex-shrink: 0; }
.hero .eyebrow { color: var(--aqua); }

.hero h1 {
  margin: 18px 0 0;
  font-size: clamp(40px, 7.4vw, 68px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--white);
}
.hero h1 .serif { letter-spacing: -0.01em; }
.lede {
  margin: 22px 0 0;
  max-width: 40rem;
  font-size: 18px;
  line-height: 1.6;
  color: rgb(255 255 255 / 0.72);
}
.chips {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips li {
  border: 1px solid rgb(255 255 255 / 0.12);
  background: rgb(255 255 255 / 0.04);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  line-height: 1.4;
  color: rgb(255 255 255 / 0.78);
}

/* ---- the page body ------------------------------------------------------------------------------------------- */
.page { padding: 48px 0 96px; }
@media (min-width: 640px) {
  .page { padding: 72px 0 120px; }
}
.layout { display: grid; gap: 32px; }
@media (min-width: 1024px) {
  .layout { grid-template-columns: 232px minmax(0, 1fr); gap: 72px; }
}

.toc-side { display: none; }
@media (min-width: 1024px) {
  .toc-side { display: block; position: sticky; top: var(--header-clear); align-self: start; }
  .toc-fold { display: none; }
}
.toc-title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.toc-side ol {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  border-left: 1px solid var(--line);
}
.toc-side a {
  display: block;
  margin-left: -1px;
  padding: 6px 0 6px 14px;
  border-left: 1px solid transparent;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink-700);
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}
.toc-side a:hover { color: var(--teal); border-left-color: var(--teal); }

.toc-fold {
  margin-bottom: 44px;
  border: 1px solid var(--mint);
  background: var(--white);
  border-radius: 20px;
}
.toc-fold summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-900);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.toc-fold summary::-webkit-details-marker { display: none; }
.toc-fold summary::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: rotate(45deg) translateY(-3px);
}
.toc-fold[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.toc-fold ol { margin: 0; padding: 0 18px 14px 38px; }
.toc-fold li { padding: 5px 0; }
.toc-fold li::marker { color: var(--teal); font-size: 13px; }
.toc-fold a { color: var(--ink-700); text-decoration: none; font-size: 15px; }

/* ---- prose --------------------------------------------------------------------------------------------------- */
.prose {
  max-width: 46rem;
  min-width: 0;
  font-size: 17px;
  line-height: 1.7;
  color: var(--slate-deep);
  overflow-wrap: break-word;
}
.prose > :first-child { margin-top: 0; }
.prose h2 {
  margin: 64px 0 18px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
  font-size: clamp(26px, 3.4vw, 32px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--ink-900);
}
.prose > section:first-of-type h2, .prose > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h2 .num {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0;
  color: var(--teal);
}
.prose h3 {
  margin: 34px 0 10px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink-900);
}
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 1.25em; }
.prose li { margin: 7px 0; padding-left: 0.2em; }
.prose li::marker { color: var(--teal); }
.prose strong { color: var(--ink-900); font-weight: 600; }
.prose a {
  color: var(--teal-600);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.prose a:hover { color: var(--teal); }
.path { color: var(--ink-900); font-weight: 500; }
.quiet { font-size: 15px; color: var(--muted); }

/* the leaf list: the mark's middle leaf as the bullet */
.leaf-list, .prose .leaf-list { list-style: none; padding-left: 0; }
.leaf-list li, .prose .leaf-list li {
  position: relative;
  padding-left: 26px;
}
.leaf-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 10px;
  height: 16px;
  background: url(/assets/brand/leaf-blue.svg) no-repeat center / contain;
}

/* ---- cards --------------------------------------------------------------------------------------------------- */
.card {
  margin: 28px 0;
  padding: 24px;
  border: 1px solid var(--mint);
  border-radius: var(--radius-card);
  background: var(--white);
}
@media (min-width: 640px) {
  .card { padding: 32px; }
}
.card > :last-child { margin-bottom: 0; }
.card h3:first-child, .card .eyebrow:first-child + h3 { margin-top: 0; }
.card .eyebrow { margin-bottom: 10px; }
.card.tint { background: var(--mint-50); }
.card.dark {
  background: var(--ink-900);
  border-color: transparent;
  color: rgb(255 255 255 / 0.74);
}
.card.dark h3, .card.dark strong { color: var(--white); }
.card.dark a { color: var(--aqua); }
.card.dark .eyebrow { color: var(--aqua); }
.card.dark .path { color: var(--white); }
.card.dark .leaf-list li::before { background-image: url(/assets/brand/leaf-pale.svg); }

.grid-2 { display: grid; gap: 16px; margin: 28px 0; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
}
.grid-2 > .card { margin: 0; }

/* contact rows */
.contact-list { margin: 0; display: grid; gap: 14px; }
.contact-list div { display: grid; gap: 2px; }
.contact-list dt { font-size: 13px; font-weight: 600; color: var(--muted); }
.card.dark .contact-list dt { color: var(--mist); }
.contact-list dd { margin: 0; color: var(--ink-900); font-size: 17px; }
.card.dark .contact-list dd { color: var(--white); }

/* numbered steps */
.steps { list-style: none; padding: 0; margin: 20px 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 0 52px;
  margin: 0 0 18px;
  min-height: 34px;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: -2px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 28px;
  line-height: 1.1;
  color: var(--teal);
}
.card.dark .steps li::before { color: var(--aqua); }

/* ---- tables (stacked on a phone, so the page never scrolls sideways) ------------------------------------------ */
.table {
  margin: 24px 0;
  border: 1px solid var(--mint);
  border-radius: 20px;
  overflow: hidden;
  background: var(--white);
}
.table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
.table th {
  text-align: left;
  vertical-align: bottom;
  padding: 12px 16px;
  background: var(--mint-50);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.table td { padding: 14px 16px; border-top: 1px solid var(--mint); vertical-align: top; }
.table td:first-child { color: var(--ink-900); font-weight: 500; }
@media (min-width: 760px) {
  .table td:first-child { width: 30%; }
}
@media (max-width: 759px) {
  .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .table table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { padding: 14px 16px; border-top: 1px solid var(--mint); }
  .table tr:first-child { border-top: 0; }
  .table td { padding: 3px 0; border: 0; }
  .table td[data-label]:not(:first-child)::before {
    content: attr(data-label);
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    margin-top: 6px;
  }
  .table td:first-child { font-size: 16px; }
}

/* ---- the footer: nther.in's ------------------------------------------------------------------------------------- */
.site-footer {
  background: var(--paper);
  border-top: 1px solid rgb(20 43 53 / 0.06);
  padding: 72px 0 40px;
}
@media (min-width: 640px) {
  .site-footer { padding: 80px 0 40px; }
}
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 5fr 2fr 2fr 3fr; gap: 48px; }
}
.footer-brand .brand { color: var(--ink-900); }
.footer-brand p { margin: 20px 0 0; max-width: 24rem; font-size: 15px; line-height: 1.65; color: var(--slate-deep); }
.footer-col .head { margin: 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.footer-col ul { list-style: none; margin: 16px 0 0; padding: 0; }
.footer-col li { margin: 10px 0 0; }
.footer-col a {
  font-size: 15px;
  color: var(--ink-700);
  text-decoration: none;
  transition: color 0.2s;
  overflow-wrap: anywhere;
}
.footer-col a:hover { color: var(--teal); }
.footer-bottom {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}
.footer-bottom p { margin: 0; }
@media (min-width: 640px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

/* ---- the 404 ----------------------------------------------------------------------------------------------------- */
.lost {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 120px 0 72px;
}
.lost .hero-inner { max-width: 640px; }
.lost-mark { width: 120px; margin-bottom: 28px; }
.lost h1 .code {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 0.6em;
  color: var(--aqua);
  letter-spacing: 0;
  margin-bottom: 10px;
}
.lost-links { margin: 32px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.lost-links a {
  display: inline-flex;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgb(255 255 255 / 0.14);
  color: var(--white);
}
.lost-links a:hover { background: rgb(255 255 255 / 0.06); }
.lost-links a.primary { background: var(--white); color: var(--ink-900); border-color: transparent; }
.lost-links a.primary:hover { background: var(--mint); }

/* ---- print ------------------------------------------------------------------------------------------------------- */
@media print {
  .site-header, .hero-art, .toc-side, .toc-fold, .skip, .footer-grid { display: none !important; }
  .hero { background: none; color: #000; padding: 0 0 16px; }
  .hero::before, .hero::after { display: none; }
  .hero h1, .lede, .chips li { color: #000; }
  .page { padding: 0; }
  .layout { display: block; }
  .prose { max-width: none; color: #000; font-size: 11pt; }
  .card, .card.dark { background: none; color: #000; border: 1px solid #999; }
  .card.dark h3, .card.dark strong, .card.dark a { color: #000; }
  .prose a::after { content: " (" attr(href) ")"; font-size: 9pt; }
}
