/* khulani.app: one stylesheet, no framework. Fonts are self-hosted (the @fontsource packages, copied by build.mjs): no font CDN. */
@font-face { font-family: 'Outfit'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/outfit-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-weight: 500; font-style: normal; font-display: swap; src: url('/fonts/outfit-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-weight: 600; font-style: normal; font-display: swap; src: url('/fonts/outfit-latin-600-normal.woff2') format('woff2'); }
/* Fraunces: the wordmark, h1 and h2, and the story's reading text. One variable file (Latin) with all four axes (wght, opsz, SOFT, WONK). */
@font-face { font-family: 'Fraunces'; font-weight: 400 600; font-style: normal; font-display: swap; src: url('/fonts/fraunces-latin-full-normal.woff2') format('woff2-variations'), url('/fonts/fraunces-latin-full-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Mono'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/space-mono-latin-400-normal.woff2') format('woff2'); }

:root {
  --bark: #2B2519;
  --bone: #F1E8D6;
  --sand: #E4D8C0; /* the stone band */
  --gold: #C79A3E;
  --gold-text: #7A5A12; /* gold on a light surface: the bright gold is never used for text or the mark on Bone or white */
  --muted: #665D52; /* ink-muted: the app's body text that recedes */
  --muted-on-dark: #B3AB99;
  --line: #C9BB9E;
  --white: #FFFFFF;
  --sans: 'Outfit', system-ui, sans-serif;
  --serif: 'Fraunces', Georgia, serif;
  --mono: 'Space Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bone); color: var(--bark); font-family: var(--sans); font-size: 18px; line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { color: var(--bark); }
a:hover { color: var(--gold-text); }
:focus-visible { outline: 3px solid var(--bark); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible { outline-color: #E8C77C; }
.on-dark a { color: var(--bone); }
.on-dark a:hover { color: #E8C77C; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--bone); color: var(--bark); padding: 12px 16px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { margin: 0; font-weight: 500; }
/* h1 and h2 are Fraunces 500 (SOFT 30, WONK 1; the optical size follows the size). Body, labels, buttons and h3 down are Outfit. */
h1, h2 { font-family: var(--serif); font-variation-settings: 'SOFT' 30, 'WONK' 1; }
h1 { font-size: clamp(36px, 4.4vw, 60px); line-height: 1.08; letter-spacing: -0.8px; }
h2 { font-size: clamp(28px, 2.6vw, 38px); line-height: 1.15; }
h3 { font-size: 20px; line-height: 1.3; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 88px 32px; }
.wrap-narrow { max-width: 900px; margin: 0 auto; padding: 88px 32px; }
.pad-top-0 { padding-top: 0; }
.row { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.col { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.stack-40 { display: flex; flex-direction: column; gap: 40px; }
.intro { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.bg-sand { background: var(--sand); }
.bg-bark { background: var(--bark); color: var(--bone); }

/* the lockup is the whole header; the footer carries the links */
.site-header { max-width: 1200px; margin: 0 auto; padding: 20px 32px 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; font-size: 16px; }
.nav a { color: var(--bark); min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
.nav a:hover { color: var(--gold-text); }
.nav a.btn-gold { min-height: 44px; padding: 8px 20px; }
.nav a.btn-gold:hover { color: var(--bark); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--bark); min-height: 44px; }
.brand:hover { color: var(--bark); }
.brand .lock { display: inline-flex; align-items: baseline; gap: 10px; }
.wordmark { font-family: var(--serif); font-weight: 500; font-variation-settings: 'opsz' 144, 'SOFT' 30, 'WONK' 1; }
.brand .wordmark { font-size: 24px; line-height: 1; }
.mark-dark { color: var(--bone); }
.mark-light { color: var(--bark); }
/* The Grow tag is part of the lockup: Space Mono, sentence case, tracked 0.15em, gold, beside a wordmark of 20px or more. */
.brand .tag { font-family: var(--mono); font-weight: 400; font-size: 12px; letter-spacing: 0.15em; color: var(--gold-text); line-height: 1; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 16px; }
.site-footer .inner { max-width: 1200px; margin: 0 auto; padding: 36px 32px 44px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 28px; }
.site-footer a { color: var(--bark); min-height: 44px; display: inline-flex; align-items: center; }
.site-footer a:hover { color: var(--gold-text); }

/* buttons and links */
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 14px 26px; border-radius: 12px; text-decoration: none; font-weight: 500; }
.btn-gold { background: var(--gold); color: var(--bark); }
a.btn-gold, a.btn-gold:hover { color: var(--bark); }
a.btn-gold:hover { background: #D8AB52; }
.on-dark a.btn-gold { color: var(--bark); }
.cta-row { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; }
.link-quiet { display: inline-flex; align-items: center; min-height: 48px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); }
.link-strong { font-weight: 500; }
.small-print { font-size: 15px; color: var(--muted); }
.lede-line { font-size: 21px; color: var(--muted); }

/* hero: the copy, on the left (the sample card that sat beside it is gone; the grid and the column are as they were) */
.hero-inner { max-width: 1200px; margin: 0 auto; padding: 56px 32px 24px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.hero .lede { font-size: 20px; color: var(--muted); max-width: 600px; }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 4px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-size: 15px; line-height: 1.4; }
.pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-text); }

/* cards and bands */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.wide { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.card p { color: var(--muted); }
.card.on-sand { background: var(--bone); border-color: transparent; }
.card.plain { background: transparent; }
.lines { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.line { display: flex; flex-direction: column; gap: 8px; border-top: 2px solid var(--gold-text); padding-top: 18px; }
.line p { color: var(--muted); }

/* the one dark band on the home page, and the limits band on /security */
.on-dark .col p { color: var(--bone); }
.cannot, .limits { list-style: none; display: flex; flex-direction: column; flex: 1 1 340px; min-width: 0; }
.cannot li, .limits li { border-bottom: 1px solid #5a5242; padding: 16px 0; }
.cannot li:first-child, .limits li:first-child { border-top: 1px solid #5a5242; }
.limits { flex: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); column-gap: 48px; }
.limits li:nth-child(2) { border-top: 1px solid #5a5242; }
.free { align-items: flex-start; }
.close-card { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 32px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.closing { padding-top: 0; padding-bottom: 96px; }

/* the Overview in markup: the app's own tokens (apps/web/tailwind.config.js), set here. Figure 40 / 600 (30 when narrow),
   lead 18 / 600, body 16 / 400, quiet 14 / 400 in the muted colour; Outfit with tabular numerals. */
.browser { container-type: inline-size; background: var(--white); box-shadow: 0 24px 50px rgba(43, 37, 25, 0.16); }
.browser { border-radius: 18px; overflow: hidden; }
.browser .dots { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--bone); border-bottom: 1px solid var(--sand); }
.browser .dots i { width: 11px; height: 11px; border-radius: 6px; background: var(--line); display: block; }
.browser .address { margin-left: 12px; font-size: 14px; color: var(--muted); background: var(--white); border-radius: 8px; padding: 2px 14px; line-height: 1.5; }
.app { background: var(--bone); padding: 28px; display: flex; flex-direction: column; gap: 24px; font-size: 16px; line-height: 1.5; text-align: left; }
.app-lead { font-size: 18px; line-height: 1.35; font-weight: 600; color: var(--bark); }
.app-body { font-size: 16px; line-height: 1.5; font-weight: 400; color: var(--bark); }
.app-quiet { font-size: 14px; line-height: 1.45; font-weight: 400; color: var(--muted); }
.app-cards { display: grid; grid-template-columns: 1fr; gap: 12px; }
.app-card { display: flex; flex-direction: column; gap: 6px; background: var(--white); border: 1px solid rgba(43, 37, 25, 0.1); border-radius: 12px; padding: 16px; min-width: 0; }
.app-figure { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; font-size: 30px; line-height: 1.1; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--bark); }
.app-figure .app-pre { font-size: 18px; line-height: 1.35; color: var(--muted); }
.app-figure .app-num { white-space: nowrap; }
.app-section { display: flex; flex-direction: column; gap: 12px; }
.app-tabs { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.app-lenses { display: flex; flex-wrap: wrap; gap: 8px; }
.lens { font-size: 14px; line-height: 1.45; padding: 4px 14px; border: 1px solid rgba(43, 37, 25, 0.2); border-radius: 999px; color: var(--muted); }
.lens.on { border-color: var(--gold); background: rgba(199, 154, 62, 0.15); color: var(--bark); }
.app-bar { display: block; width: 100%; height: 12px; border-radius: 999px; background: rgba(43, 37, 25, 0.1); }
.app-list { list-style: none; display: flex; flex-direction: column; }
.app-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 12px; row-gap: 2px; align-items: start; border-top: 1px solid rgba(43, 37, 25, 0.1); padding: 12px 0; }
.app-swatch { display: block; padding-top: 6px; }
.app-swatch svg { display: block; }
.app-amount, .app-share { white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.app-where { grid-column: 2; }
.app-where + .app-share { grid-column: 3; }
@container (min-width: 560px) {
  .app-figure { font-size: 40px; }
}
@container (min-width: 760px) {
  .app-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@container (max-width: 520px) {
  .app { padding: 16px; gap: 18px; }
}

/* /security */
.steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.step { display: flex; flex-direction: column; gap: 12px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.step .num { font-family: var(--mono); font-size: 14px; color: var(--gold-text); }
.step div { display: flex; flex-direction: column; gap: 8px; }
.step p { color: var(--muted); }

/* /questions */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 44px 20px 0; font-weight: 500; font-size: 20px; line-height: 1.3; position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 8px; top: 16px; font-size: 28px; font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { padding: 0 44px 24px 0; max-width: 720px; color: var(--muted); }

/* long reading */
.article { max-width: 720px; margin: 0 auto; padding: 72px 32px 64px; display: flex; flex-direction: column; gap: 22px; }
.article.wide { max-width: 1200px; padding-bottom: 48px; }
.article.wide > * { max-width: 760px; }
/* /story: one narrow column, a serif at reading size, nothing in the margins. */
.article.story { max-width: 680px; gap: 28px; font-family: var(--serif); font-size: 21px; line-height: 1.75; font-weight: 400; padding-bottom: 72px; }
.article.story h1 { font-size: clamp(40px, 5vw, 60px); margin-bottom: 8px; }
.article .rule { width: 64px; height: 2px; background: var(--gold-text); margin: 12px 0; }
.pull { margin: 8px 0; padding: 0 0 0 24px; border-left: 4px solid var(--gold-text); }
.pull p { font-family: var(--serif); font-weight: 500; font-variation-settings: 'SOFT' 30, 'WONK' 1; font-size: clamp(34px, 4.6vw, 52px); line-height: 1.1; letter-spacing: -0.5px; }
.signed { display: flex; align-items: center; gap: 14px; margin-top: 12px; font-family: var(--sans); font-size: 18px; font-weight: 500; }

.center-page { max-width: 720px; margin: 0 auto; padding: 72px 32px 120px; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.links404 { display: flex; flex-wrap: wrap; gap: 0 28px; }
.links404 a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 500; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .grid.six { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  .wrap, .wrap-narrow { padding: 56px 20px; }
  .site-header { padding: 14px 20px 0; }
  .nav { gap: 0 18px; font-size: 15px; }
  .hero-inner { padding: 32px 20px 8px; }
  .hero .lede { font-size: 18px; }
  .row { gap: 36px; }
  .article { padding: 48px 20px 56px; }
  .article.story { font-size: 20px; }
  .site-footer .inner { padding: 28px 20px 36px; }
  .center-page { padding: 48px 20px 80px; }
  .close-card { padding: 24px; }
  .grid, .grid.wide, .grid.six, .grid.two, .lines, .steps,   .limits { grid-template-columns: minmax(0, 1fr); }
  .limits li:nth-child(2) { border-top: 0; }
}
/* Phone widths up to 430px: the five items need 388px at 15px, so below about 428px they do not fit one row under the 44px lockup and
   "Get started" dropped to a row of its own, and at 430px "Story" and "Sign in" were narrower than 44px (D16). The row is kept: 14px text, smaller side padding, spread across the width, every target at least 44px. */
@media (max-width: 430px) {
  .nav { flex: 1 1 100%; justify-content: space-between; gap: 0 2px; font-size: 14px; }
  .nav a { min-width: 44px; justify-content: center; padding: 0 4px; }
  .nav a.btn-gold { padding: 8px 12px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* /privacy and /terms (D37): the legal files in the reading column. A table never scrolls or widens the page: its cells wrap. */
.article.legal { gap: 0; }
.article.legal h1 { margin-bottom: 4px; }
.article.legal h2 { font-size: clamp(24px, 2.2vw, 30px); margin: 40px 0 8px; }
.article.legal p, .article.legal ul, .article.legal table { margin: 10px 0; }
.article.legal ul { padding-left: 24px; display: flex; flex-direction: column; gap: 8px; }
.article.legal p, .article.legal li { overflow-wrap: anywhere; }
/* break-word, not anywhere, in a cell: a column is sized to its longest word, so a provider's name never splits. */
.article.legal td, .article.legal th { overflow-wrap: break-word; }
.article.legal strong { font-weight: 600; }
.article.legal table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.45; }
.article.legal th, .article.legal td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-top: 1px solid var(--line); }
.article.legal th { font-weight: 600; border-top: 0; }
@media (max-width: 720px) {
  .article.legal table { font-size: 15px; }
  .article.legal th, .article.legal td { padding-right: 8px; }
}
