/* PayeeKit website. One stylesheet, no dependencies.

   The look is printed matter: a well-kept ledger, a clear bank statement. Flat paper color, hairline
   rules, a serif for headings, and real screens from the app where a picture helps. Deliberately
   absent, because readers now take them as signs of machine-made design: gradients, glass and glow,
   pill badges, rows of identical cards, checkmark bullets, decorative icons and stock people.
   AppStore/claude-design-prompt.md holds the same rules for the App Store screenshots. */

/* The brand: the same values the app uses (PKTheme.swift). */
:root {
  --paper: #fff8f2;        /* Receipt White: the page */
  --fog: #f5fbf7;
  --mint: #ddf1e5;
  --ink: #0f3b3a;          /* Ink Teal: body text */
  --teal: #0f4c4a;         /* Deep Teal: headings, buttons, links */
  --slate: #4a6664;        /* secondary text, 5.9:1 on paper */
  --rule: rgba(15, 76, 74, 0.18);
  --rule-strong: rgba(15, 76, 74, 0.34);
  --focus: #0b4a86;
  --measure: 40rem;
  --wide: 68rem;
}

/* Self-hosted: a font from someone else's server would tell them who read the privacy page.
   Cut by scripts/make_web_fonts.py from the same files the app bundles. */
@font-face { font-family: "Young Serif"; src: url("/fonts/YoungSerif-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/fonts/DMSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/fonts/DMSans-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/fonts/DMSans-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }

h1, h2, h3 {
  font-family: "Young Serif", Georgia, "Times New Roman", serif;
  font-weight: 400;
  color: var(--teal);
  line-height: 1.15;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.1rem); margin: 0 0 1rem; line-height: 1.08; }
h2 { font-size: clamp(1.45rem, 3vw, 1.85rem); margin: 3rem 0 0.9rem; }
h3 { font-size: 1.2rem; margin: 2rem 0 0.5rem; }

p { margin: 0 0 1.1rem; }
ul, ol { margin: 0 0 1.1rem; padding-left: 1.3rem; }
li { margin-bottom: 0.45rem; }
li::marker { color: var(--slate); }
strong { font-weight: 600; }

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 1.25rem; }
.measure { max-width: var(--measure); }
.muted { color: var(--slate); }
.lede { font-size: 1.18rem; line-height: 1.55; }
.small { font-size: 0.9rem; }
.mt-0 { margin-top: 0; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--teal); color: var(--paper); padding: 0.6rem 1rem; z-index: 10; }
.skip-link:focus { left: 0; }

/* Header: the lockup and four plain links, on a rule. */
.site-header { border-bottom: 1px solid var(--rule); }
.header-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem 2rem; padding-top: 1.1rem; padding-bottom: 1.1rem; }
.logo { display: inline-flex; line-height: 0; }
.logo img { height: 30px; width: auto; }
.site-header .logo img { height: 60px; }
.site-header nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; margin: 0; padding: 0; }
.site-header nav li { margin: 0; }
.site-header nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.98rem; padding: 0.2rem 0; border-bottom: 1px solid transparent; }
.site-header nav a:hover { border-bottom-color: var(--rule-strong); }
.site-header nav a[aria-current="page"] { color: var(--teal); border-bottom-color: var(--teal); }

main { padding-bottom: 2rem; }
main.page { padding-top: 3rem; }
main.page > .wrap > * { max-width: var(--measure); }
main.page > .wrap > .table-wrap { max-width: 100%; }

/* Buttons: one solid, the rest are links. */
.button {
  display: inline-block;
  background: var(--teal);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
  padding: 0.8rem 1.3rem;
  border-radius: 10px;
}
.button:hover { background: var(--ink); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.6rem; margin-top: 1.6rem; }

/* Home: the opening, with the real resource watch beside it. */
.opening { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 3rem; align-items: center; padding: 3.5rem 0 3rem; }
.opening .lede { font-size: 1.2rem; color: var(--slate); max-width: 34rem; }
.for-whom { color: var(--slate); font-size: 0.98rem; margin-bottom: 1.1rem; }

/* A screen from the app: its own corners and a hairline. No device frame, no tilt, no shadow. */
.screen { margin: 0; }
.screen img { border-radius: 28px; border: 1px solid var(--rule); background: var(--fog); }
.screen figcaption { margin-top: 0.6rem; font-size: 0.88rem; color: var(--slate); }
.opening .screen { max-width: 330px; justify-self: center; }

/* Home: each feature is a heading, a paragraph and the screen that shows it. */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 3rem; align-items: start; padding: 3rem 0; border-top: 1px solid var(--rule); }
.feature h2 { margin-top: 0; }
.feature .screen { justify-self: end; width: 100%; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 260px)); gap: 1.5rem; justify-content: start; margin-top: 1.6rem; }

/* A ledger-style list: a term, what it means, a rule between. Used where a template would reach for
   a grid of cards. */
.ledger-list { list-style: none; padding: 0; margin: 1.4rem 0; border-top: 1px solid var(--rule); }
.ledger-list li { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 0.4rem 2rem; padding: 1rem 0; margin: 0; border-bottom: 1px solid var(--rule); }
.ledger-list .term { font-weight: 600; color: var(--teal); }
.ledger-list p { margin: 0; }

/* The one sentence that carries the privacy promise, set large on the mint band. */
.band { background: var(--mint); padding: 3rem 0; margin: 3rem 0; }
.band .statement { font-family: "Young Serif", Georgia, serif; font-size: clamp(1.5rem, 3.4vw, 2.1rem); line-height: 1.25; color: var(--teal); max-width: 34ch; margin: 0 0 1rem; }
.band p { max-width: var(--measure); }

.note { border-left: 3px solid var(--teal); padding: 0.2rem 0 0.2rem 1.3rem; margin: 2rem 0; max-width: var(--measure); }
.note h2, .note h3 { margin-top: 0; }

/* The disclaimer: plain and ruled, never alarming. */
.callout { border: 1px solid var(--rule-strong); border-radius: 6px; padding: 1.1rem 1.3rem; margin: 2rem 0; max-width: var(--measure); }
.callout p { margin: 0; }
.callout p + p { margin-top: 0.5rem; }
.callout-quiet { border-color: var(--rule); }

/* Tables: rules like a statement. */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; }
table { border-collapse: collapse; width: 100%; min-width: 460px; }
caption { text-align: left; font-size: 0.88rem; color: var(--slate); padding-bottom: 0.5rem; }
th, td { text-align: left; padding: 0.7rem 0.9rem 0.7rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; font-size: 0.98rem; }
thead th { border-bottom: 1px solid var(--rule-strong); font-weight: 600; color: var(--teal); }
/* A form number or a date is one thing: never broken across lines. */
th:first-child, td:first-child { white-space: nowrap; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--rule); padding: 1rem 0; }
.faq details:first-of-type { border-top: 1px solid var(--rule); }
.faq summary { font-weight: 600; color: var(--teal); cursor: pointer; }
.faq details p { margin: 0.6rem 0 0; }

.sources { font-size: 0.92rem; color: var(--slate); }
.sources li { word-break: break-word; }

/* Blog index: a dated list, newest first, each with its photo. */
.post-list { list-style: none; padding: 0; margin: 2rem 0; border-top: 1px solid var(--rule); max-width: none; }
.post-list li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 220px); gap: 1.5rem 2.5rem; padding: 1.8rem 0; margin: 0; border-bottom: 1px solid var(--rule); }
.post-list time { display: block; color: var(--slate); font-size: 0.92rem; margin-bottom: 0.35rem; }
.post-list h2 { font-size: 1.45rem; margin: 0 0 0.5rem; }
.post-list h2 a { text-decoration: none; }
.post-list h2 a:hover { text-decoration: underline; }
.post-list p { margin: 0; }
.post-list img { border-radius: 4px; }

/* A post */
.post { padding-top: 3rem; }
.post header, .post .body, .post .post-end { max-width: var(--measure); }
.post .kicker { color: var(--slate); font-size: 0.95rem; margin-bottom: 0.8rem; }
.post .standfirst { font-size: 1.2rem; color: var(--slate); }
.post .hero { margin: 2rem 0 2.5rem; max-width: 60rem; }
.post .hero img { border-radius: 4px; width: 100%; }
.post .hero figcaption { font-size: 0.85rem; color: var(--slate); margin-top: 0.55rem; }
.post .body h2 { font-size: 1.5rem; margin-top: 2.4rem; }
.post-end { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }

/* Footer: Deep Teal ground, reversed lockup. */
.site-footer { background: var(--teal); color: var(--paper); margin-top: 4rem; }
.site-footer a { color: var(--paper); }
.footer-inner { padding: 2.6rem 1.25rem 3rem; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 3rem; }
.footer-inner .logo img { height: 28px; }
.footer-inner .disclaimer { max-width: 36rem; margin: 1rem 0 0; font-size: 0.95rem; color: var(--mint); }
.site-footer nav ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, auto); gap: 0.4rem 2rem; }
.site-footer nav li { margin: 0; }
.site-footer nav a { text-decoration: none; font-size: 0.95rem; }
.site-footer nav a:hover { text-decoration: underline; }
.copyright { grid-column: 1 / -1; margin: 0; padding-top: 1.2rem; border-top: 1px solid rgba(221, 241, 229, 0.25); font-size: 0.88rem; color: var(--mint); }

@media (max-width: 760px) {
  .site-header nav ul { gap: 0.4rem 1.05rem; }
  .opening, .feature { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .opening { padding-top: 2.4rem; }
  .opening .screen, .feature .screen { max-width: 280px; justify-self: start; }
  .pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ledger-list li { grid-template-columns: minmax(0, 1fr); }
  .post-list li { grid-template-columns: minmax(0, 1fr); }
  .post-list img { max-width: 360px; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
}

@media print {
  .site-header nav, .site-footer nav, .actions { display: none; }
  .site-footer { background: none; color: var(--ink); }
}

/* A feature told in words alone: paragraphs keep the reading measure, a ledger list gets room for its
   two columns. */
.feature:not(:has(> .screen)) { grid-template-columns: minmax(0, 56rem); }
.feature > div > p { max-width: var(--measure); }

/* Photos come in whatever shape the photographer shot. Crop them all to one shape so the blog list
   and the post openings are even. */
.post .hero img, .post-list img { aspect-ratio: 3 / 2; object-fit: cover; }
.post .kicker time, .post .kicker span { white-space: nowrap; }
