/* ---------------------------------------------------------------------------
   Barya site tokens.

   Lifted from the app's src/constants/theme.ts rather than invented for the
   web, so the page and the app are the same object. Two grounds, pure black
   and pure white. Structure is 1px hairlines and nothing else: no fills, no
   shadows, no accent colour, no radii. An editorial serif carries every
   number a person reads as money; the platform grotesque carries every label.

   Shared by /barya/, /barya/support/ and /barya/privacy/ so the three pages
   are one stylesheet and one download.
--------------------------------------------------------------------------- */

:root {
  --bg:       #FFFFFF;
  --ink:      #000000;
  --muted:    #666666;
  --faint:    #949494;
  --hairline: #E5E5E5;
  --track:    #DCDCDC;

  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans:  -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --page: 62rem;
  --rule: 1px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:       #000000;
    --ink:      #FFFFFF;
    --muted:    #9C9C9C;
    --faint:    #6B6B6B;
    --hairline: #1A1A1A;
    --track:    #262626;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.container { width: 100%; max-width: var(--page); margin: 0 auto; padding: 0 1.25rem; }

a { color: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip:focus {
  position: fixed; top: .75rem; left: .75rem; width: auto; height: auto;
  clip: auto; padding: .6rem .9rem; background: var(--ink); color: var(--bg); z-index: 10;
}

/* Micro-labels. Letter-spaced so they read as rules, not as words. */
.label {
  font-size: .625rem;
  letter-spacing: .14em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--muted);
}
.label.strong { color: var(--ink); }

/* ---------------------------------- head --------------------------------- */

.site-header { border-bottom: var(--rule) solid var(--hairline); }
.site-header .inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: 100%; max-width: var(--page); margin: 0 auto; padding: .9rem 1.25rem;
}
.brand { display: flex; align-items: center; gap: .5rem; text-decoration: none; }
.brand .wordmark { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; }
.mark { display: block; }
.nav { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.text-link {
  font-size: .625rem; letter-spacing: .14em; font-weight: 500; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
}
.text-link:hover { color: var(--ink); }
.text-link[aria-current="page"] {
  color: var(--ink); border-bottom: var(--rule) solid var(--ink); padding-bottom: 2px;
}

/* ---------------------------------- hero --------------------------------- */

.hero { padding: 4rem 1.25rem 3rem; }
.hero h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(2.75rem, 9vw, 5rem); line-height: 1.02;
  margin: .75rem 0 0; letter-spacing: -.015em;
}
.lede {
  max-width: 34rem; margin: 1.25rem 0 0;
  font-size: 1.0625rem; color: var(--muted);
}

/* The amount, set the way the app sets it: small grotesque symbol, big serif
   numerals, aligned on the baseline. */
.amount { display: flex; align-items: baseline; gap: .2rem; }
.amount .sym { font-size: .42em; color: var(--muted); }
.amount .num {
  font-family: var(--serif); font-weight: 600;
  font-variant-numeric: tabular-nums; letter-spacing: -.01em;
}

/* Budget dots, the app's own indicator. */
.dots { display: flex; align-items: center; gap: .75rem; margin-top: .55rem; }
.dots .label { width: 3.2rem; flex: none; }
.dots .strip { display: flex; gap: .3rem; flex-wrap: nowrap; }
.dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--track); }
.dots i.on { background: var(--ink); }

.status {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-top: 2rem; padding-bottom: .2rem;
  border-bottom: var(--rule) solid var(--ink);
}
.status .pip { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }

/* --------------------------------- device -------------------------------- */

.showcase {
  display: grid; grid-template-columns: 1fr; gap: 2.5rem;
  padding: 3rem 1.25rem; border-top: var(--rule) solid var(--hairline);
}
@media (min-width: 56rem) {
  .showcase { grid-template-columns: 1fr auto; align-items: center; gap: 4rem; }
}
.showcase h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.6rem, 4vw, 2.2rem); margin: .6rem 0 1rem; letter-spacing: -.01em;
}
.showcase p { margin: 0 0 1rem; color: var(--muted); max-width: 30rem; }
.showcase p:last-child { margin-bottom: 0; }

/* A miniature of the entry screen, built from the same rules as the app: a
   hairline grid, inverted press states, and no fills anywhere. */
.phone {
  width: 100%; max-width: 20rem; margin: 0 auto;
  border: var(--rule) solid var(--hairline);
}
.phone .top { padding: 1.1rem 1rem 1.35rem; }
.phone .total { margin-top: .3rem; }
.phone .total .num { font-size: 2.9rem; }
.phone .caption { font-size: .75rem; color: var(--muted); margin-top: .5rem; }
.phone .settled {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .6rem 1rem; border-top: var(--rule) solid var(--hairline);
  font-size: .75rem; color: var(--muted);
}
.phone .settled b { font-weight: 500; letter-spacing: .1em; }
.phone .settled u {
  text-decoration: none; color: var(--ink);
  border-bottom: var(--rule) solid var(--ink); padding-bottom: 1px;
  font-size: .625rem; letter-spacing: .14em; text-transform: uppercase;
}
.phone .cats, .phone .keys { display: grid; border-top: var(--rule) solid var(--hairline); }
.phone .cats { grid-template-columns: repeat(3, 1fr); }
.phone .keys { grid-template-columns: repeat(4, 1fr); }
.phone .cats span, .phone .keys span {
  display: flex; align-items: center; justify-content: center;
  padding: .8rem .2rem;
}
.phone .cats span + span, .phone .keys span:not(:nth-child(4n + 1)) {
  border-left: var(--rule) solid var(--hairline);
}
.phone .keys span:nth-child(n + 5) { border-top: var(--rule) solid var(--hairline); }
.phone .cats span {
  font-size: .625rem; letter-spacing: .14em; font-weight: 500; color: var(--ink);
}
.phone .cats span u { text-decoration: none; border-bottom: var(--rule) solid var(--ink); padding-bottom: 2px; }
.phone .keys span { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
/* One key inverted, the way the app shows a press. */
.phone .keys span.press { background: var(--ink); color: var(--bg); }

/* --------------------------------- points -------------------------------- */

.points { border-top: var(--rule) solid var(--hairline); }
.points .grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 44rem) { .points .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 68rem) { .points .grid { grid-template-columns: repeat(4, 1fr); } }

.point { padding: 2rem 1.25rem; border-top: var(--rule) solid var(--hairline); }
.point:first-child { border-top: 0; }
@media (min-width: 44rem) {
  .point { border-top: 0; border-left: var(--rule) solid var(--hairline); }
  .point:nth-child(odd) { border-left: 0; }
  .point:nth-child(n + 3) { border-top: var(--rule) solid var(--hairline); }
}
@media (min-width: 68rem) {
  .point { border-left: var(--rule) solid var(--hairline); border-top: 0; }
  .point:first-child { border-left: 0; }
  .point:nth-child(odd) { border-left: var(--rule) solid var(--hairline); }
  .point:nth-child(n + 3) { border-top: 0; }
}
.point h2 { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; margin: .55rem 0 .5rem; }
.point p { margin: 0; color: var(--muted); font-size: .9375rem; }

/* --------------------------------- detail -------------------------------- */

.detail { border-top: var(--rule) solid var(--hairline); padding: 3rem 1.25rem; }
.detail h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.75rem, 4.5vw, 2.5rem); margin: .5rem 0 1.5rem; letter-spacing: -.01em;
}
.rows { border-top: var(--rule) solid var(--hairline); }
.row {
  display: grid; grid-template-columns: 1fr; gap: .35rem;
  padding: 1.1rem 0; border-bottom: var(--rule) solid var(--hairline);
}
@media (min-width: 44rem) {
  .row { grid-template-columns: 12rem 1fr; gap: 2rem; align-items: baseline; }
}
.row p { margin: 0; color: var(--muted); font-size: .9375rem; }

.note { margin: 2rem 0 0; color: var(--faint); font-size: .8125rem; max-width: 34rem; }

/* An underlined word that acts like a button, the way the app draws actions. */
.action {
  display: inline-block;
  font-size: .625rem; letter-spacing: .14em; font-weight: 500; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  border-bottom: var(--rule) solid var(--ink); padding-bottom: 3px;
}
.action:hover { color: var(--muted); border-bottom-color: var(--muted); }

/* ------------------------------ document pages --------------------------- */

/* Support and privacy. A single measured column of hairline-separated
   sections, because both are read once, in order, by somebody looking for one
   specific answer. */

.doc { padding: 3.5rem 1.25rem 1rem; }
.doc h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(2.25rem, 7vw, 3.5rem); line-height: 1.05;
  margin: .75rem 0 0; letter-spacing: -.015em;
}
.doc .intro { max-width: 36rem; margin: 1.1rem 0 0; color: var(--muted); font-size: 1.0625rem; }
.doc .meta { margin: 1.5rem 0 0; color: var(--faint); font-size: .8125rem; }

.section { border-top: var(--rule) solid var(--hairline); padding: 2.5rem 1.25rem; }
.section h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.5rem, 4vw, 2rem); margin: .5rem 0 1rem; letter-spacing: -.01em;
}
.prose { max-width: 40rem; }
.prose p { margin: 0 0 1rem; color: var(--muted); }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); font-weight: 500; }
.prose ul { margin: 0 0 1rem; padding-left: 1.1rem; color: var(--muted); }
.prose li { margin: 0 0 .5rem; }
.prose li:last-child { margin-bottom: 0; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }

/* The contact block: a hairline row, not a card. */
.contact { border-top: var(--rule) solid var(--hairline); border-bottom: var(--rule) solid var(--hairline); padding: 1.5rem 0; }
.contact .address {
  display: inline-block; margin: .4rem 0 0;
  font-family: var(--serif); font-weight: 600; font-size: clamp(1.25rem, 4vw, 1.75rem);
  text-decoration: none; border-bottom: var(--rule) solid var(--ink); padding-bottom: 2px;
  letter-spacing: -.01em;
}
.contact .turnaround { margin: .9rem 0 0; color: var(--muted); font-size: .9375rem; }

/* Questions. Disclosure rows, each one a hairline, opening in place. */
.faq { border-top: var(--rule) solid var(--hairline); }
.faq details { border-bottom: var(--rule) solid var(--hairline); }
.faq summary {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 0; cursor: pointer; list-style: none;
  font-size: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
/* The glyph is CSS, not markup, so an open row actually reads as one: a plus
   that never turns into a minus is a control that looks broken. */
.faq summary .sign { color: var(--muted); flex: none; line-height: 1; }
.faq summary .sign::after { content: "+"; }
.faq details[open] summary .sign { color: var(--ink); }
.faq details[open] summary .sign::after { content: "\2212"; }
.faq .answer { padding: 0 0 1.25rem; color: var(--muted); max-width: 40rem; }
.faq .answer p { margin: 0 0 .75rem; }
.faq .answer p:last-child { margin-bottom: 0; }
.faq .answer strong { color: var(--ink); font-weight: 500; }

/* --------------------------------- footer -------------------------------- */

.site-footer {
  border-top: var(--rule) solid var(--hairline);
  padding: 2rem 1.25rem 3rem; text-align: center;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; }
.fine { color: var(--faint); font-size: .8125rem; margin: 1.25rem 0 0; }

@media (prefers-reduced-motion: no-preference) {
  a, .text-link { transition: color .18s ease; }
}
