/* Pavuli website. Tokens mirror the Pavuli Brand design system
   (https://claude.ai/artifact/2fb4zQvr6U1e6VpjtzkJwc, project/tokens.json). Never hard-code a
   colour or size below the token block. Fonts are self-hosted: no request leaves this site. */

@font-face { font-family: 'Plus Jakarta Sans'; src: url('/fonts/PlusJakartaSans_400Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Plus Jakarta Sans'; src: url('/fonts/PlusJakartaSans_500Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Plus Jakarta Sans'; src: url('/fonts/PlusJakartaSans_600SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Plus Jakarta Sans'; src: url('/fonts/PlusJakartaSans_700Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Plus Jakarta Sans'; src: url('/fonts/PlusJakartaSans_800ExtraBold.ttf') format('truetype'); font-weight: 800; font-display: swap; }

:root {
  color-scheme: light dark;
  --brand: #2a1f1a;
  --accent: #ffc94a;
  --accent-ink: #8a5a00;
  --surface-0: #faf6ef;
  --surface-1: #ffffff;
  --surface-2: #efe8dc;
  --ink: #2a1f1a;
  --ink-muted: #6b5f55;
  --primary: #2a1f1a;
  --on-primary: #fff6ea;
  --on-accent: #2a1f1a;
  --alert: #c23a2e;
  --border: #e3dacc;
  --border-strong: #8c8075;
  --focus: var(--accent-ink);

  --font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  /* Website-only scale, built on the app's display style. */
  --hero-size: clamp(32px, 6vw, 52px);
  --page-width: 1040px;
  --text-width: 680px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent-ink: #ffc94a;
    --surface-0: #17120f;
    --surface-1: #201a16;
    --surface-2: #2e2620;
    --ink: #f5eee6;
    --ink-muted: #b3a79b;
    --primary: #f5eee6;
    --on-primary: #2a1f1a;
    --alert: #ff7a6b;
    --border: #352c25;
    --border-strong: #7a6e63;
  }
}

/* Logo: pick the file for the ground, never recolour. */
.mark-dark { display: none; }
@media (prefers-color-scheme: dark) {
  .mark-light { display: none; }
  .mark-dark { display: block; }
}

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

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

body {
  margin: 0;
  background: var(--surface-0);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 22px;
  font-weight: 400;
}

a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--radius-sm); }

.skip {
  position: absolute; left: var(--space-4); top: -100px;
  background: var(--primary); color: var(--on-primary);
  padding: var(--space-2) var(--space-4); border-radius: var(--radius-md);
}
.skip:focus { top: var(--space-4); }

.wrap { max-width: var(--page-width); margin: 0 auto; padding: 0 var(--space-4); }
.narrow { max-width: var(--text-width); }

/* Header */
.site-header { padding: var(--space-4) 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; min-height: 44px; }
.brand img { height: 28px; width: auto; }
.wordmark { font-size: 22px; line-height: 28px; font-weight: 800; letter-spacing: -0.02em; }
.site-nav { display: flex; gap: var(--space-1); flex-wrap: wrap; }
.site-nav a {
  color: var(--ink); text-decoration: none; font-weight: 600;
  padding: var(--space-3) var(--space-3); border-radius: var(--radius-md); min-height: 44px; display: inline-flex; align-items: center;
}
.site-nav a:hover { background: var(--surface-2); }
.site-nav a[aria-current="page"] { color: var(--accent-ink); }

/* Type */
h1, h2, h3 { margin: 0; color: var(--ink); }
.eyebrow { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); margin: 0 0 var(--space-3); }
.hero h1 { font-size: var(--hero-size); line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; max-width: 16ch; }
.lead { font-size: 18px; line-height: 28px; color: var(--ink-muted); max-width: 46ch; margin: var(--space-4) 0 0; }
.page-title { font-size: 32px; line-height: 38px; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: 22px; line-height: 28px; font-weight: 700; }
h3 { font-size: 17px; line-height: 22px; font-weight: 700; }
.muted { color: var(--ink-muted); }
.caption { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--ink-muted); }

/* Sections */
main { padding-bottom: var(--space-8); }
.hero { padding-top: var(--space-8); padding-bottom: var(--space-6); }
section { padding: var(--space-8) 0 0; }
section > .wrap > h2 { margin-bottom: var(--space-4); }

.cta { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-6); }
.button {
  display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: 44px; padding: var(--space-3) var(--space-4);
  background: var(--primary); color: var(--on-primary);
  border-radius: var(--radius-md); font-weight: 600; text-decoration: none;
}
.button[aria-disabled="true"] { cursor: default; }

.grid { display: grid; gap: var(--space-3); }
@media (min-width: 720px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}
.card { background: var(--surface-1); border-radius: var(--radius-lg); padding: var(--space-4); }
.card h3 { margin-bottom: var(--space-1); }
.card p { margin: 0; color: var(--ink-muted); }

/* Where your data goes */
.facts { list-style: none; margin: 0; padding: 0; background: var(--surface-1); border-radius: var(--radius-lg); }
.facts li { display: grid; grid-template-columns: 1fr; gap: var(--space-1); padding: var(--space-4); }
.facts li + li { border-top: 1px solid var(--border); }
@media (min-width: 720px) { .facts li { grid-template-columns: 220px 1fr; gap: var(--space-4); } }
.facts strong { font-weight: 700; }
.facts span { color: var(--ink-muted); }

/* Product sketches: drawn in HTML from the app's tokens, with sample data. */
.step-label { display: flex; align-items: baseline; gap: var(--space-2); margin-bottom: var(--space-3); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 24px; height: 24px; border-radius: var(--radius-pill);
  background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 700;
}
.screen { background: var(--surface-0); border-radius: var(--radius-md); padding: var(--space-3); min-height: 230px; display: flex; flex-direction: column; gap: var(--space-2); }
.receipt {
  background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-sm);
  margin: 0 auto; width: 70%; padding: var(--space-3); font-size: 12px; line-height: 18px; color: var(--ink-muted);
  outline: 2px dashed var(--accent); outline-offset: 6px;
}
.receipt b { color: var(--ink); font-weight: 700; }
.receipt .line { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.row { display: flex; align-items: center; gap: var(--space-2); background: var(--surface-1); border-radius: var(--radius-sm); padding: var(--space-2); }
.tile { width: 28px; height: 28px; border-radius: var(--radius-sm); background: var(--surface-2); flex: none; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--ink-muted); }
.row .who { flex: 1; min-width: 0; }
.row .who b { display: block; font-size: 14px; line-height: 18px; }
.row .who > span:not(.chip) { font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.amount { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; }
.row .who .chip, .chip { display: inline-block; background: var(--accent); color: var(--on-accent); font-size: 10px; line-height: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 1px 6px; border-radius: var(--radius-pill); }
.total { background: var(--primary); color: var(--on-primary); border-radius: var(--radius-md); padding: var(--space-3); }
.total .caption { color: inherit; opacity: 0.8; }
.total .big { font-size: 24px; line-height: 30px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.bar { display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: var(--space-2); font-size: 12px; line-height: 16px; }
.bar .track { height: 8px; background: var(--surface-2); border-radius: var(--radius-pill); overflow: hidden; }
.bar .fill { height: 100%; background: var(--primary); border-radius: var(--radius-pill); }
.bar .amount { font-weight: 600; }

/* Long text (privacy policy, support) */
.prose { padding-top: var(--space-6); }
.prose h2 { margin: var(--space-8) 0 var(--space-3); }
.prose h3 { margin: var(--space-6) 0 var(--space-2); }
.prose p, .prose ul { margin: 0 0 var(--space-3); }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: var(--space-1); }
.prose .updated { margin-top: var(--space-2); }
.note { background: var(--surface-1); border-radius: var(--radius-lg); padding: var(--space-4); margin: var(--space-6) 0; }
.note p:last-child { margin-bottom: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); margin-top: var(--space-8); padding: var(--space-6) 0; }
.site-footer .wrap { display: flex; gap: var(--space-4); justify-content: space-between; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: var(--space-4); flex-wrap: wrap; }

@media (prefers-reduced-motion: no-preference) {
  .site-nav a, .button { transition: background-color 150ms ease, transform 150ms ease; }
  .button:active { transform: scale(0.97); }
}
@media (prefers-reduced-motion: reduce) {
  .button:active { opacity: 0.7; }
}
