/* BrushMark — site styles
   Tokens come from the app's Organic design system (design/README.md in the app
   repo). If the app's palette or type changes, change it here and re-render
   og-image.png, which is drawn in the same colors. */

/* Caprasimo (display) and Figtree (body), self-hosted so no visitor IP reaches
   Google and the CSP can stay same-origin. Both carry their OFL in fonts/. */
@font-face {
  font-family: 'Caprasimo';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/caprasimo-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: 'Caprasimo';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/caprasimo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('/fonts/figtree-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: 'Figtree';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('/fonts/figtree-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;

  --paper:      #f5ead8;  /* ground  */
  --paper-alt:  #ebddc5;  /* surface */
  --card:       #f9f4ed;  /* neutral-100 */
  --ink:        #201e1d;
  --ink-soft:   #716c64;  /* "ink @62%", flattened onto the ground */
  --rule:       #dcd3c4;  /* neutral-300 */

  --accent-200: #ffe1d0;
  --accent-400: #f6a06b;
  --accent-500: #d67f48;
  --accent-600: #b2622d;
  --accent-700: #8c491a;
  --sage-200:   #e1eecc;
  --sage-500:   #8fa073;
  --sage-700:   #56633f;

  --radius-md:  16px;
  --radius-lg:  28px;
  --shadow-sm:  0 1px 2px rgba(46, 43, 37, .14);
  --shadow-md:  0 3px 10px rgba(46, 43, 37, .16);

  --measure: 64ch;
  --gutter: clamp(1rem, 5vw, 4rem);

  --font: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Caprasimo', Georgia, serif;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--accent-700); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--accent-700);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.prose { max-width: var(--measure); }

/* ---------- Type ---------- */

/* Caprasimo is a single static weight; font-weight 400 stops the browser
   synthesising a fake bold on headings. */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.5rem, 7vw, 4.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.2rem; line-height: 1.3; }

p { margin: 0 0 1.1em; }

.lead {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 50ch;
}

.small { font-size: 0.9rem; color: var(--ink-soft); }

b, strong { font-weight: 700; }

.eyebrow {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-700);
  margin-bottom: 0.6rem;
}

/* ---------- Header ---------- */

.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
  padding-block: 1.1rem;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--ink);
  text-decoration: none;
}
.mark:hover { color: var(--ink); }
.mark img { width: 34px; height: 34px; border-radius: 9px; box-shadow: var(--shadow-sm); }

.site-nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.97rem;
  padding-block: 2px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current='page'] { border-bottom-color: var(--accent-500); }

/* ---------- Hero ---------- */

.hero { padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(3rem, 7vw, 5rem); }

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}

@media (max-width: 800px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 300px; }
}

.hero h1 { margin-bottom: 0.4em; }

.status {
  display: inline-block;
  background: var(--sage-200);
  color: var(--sage-700);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 1.3rem;
}

.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }

.btn {
  display: inline-block;
  border-radius: 999px;
  padding: 0.8rem 1.6rem;
  background: var(--accent-500);
  color: var(--card);
  font-family: var(--font-display);
  font-size: 1.02rem;
  text-decoration: none;
  box-shadow: var(--shadow-md);
}
.btn:hover { background: var(--accent-600); color: var(--card); }
.btn:active { background: var(--accent-700); }

.btn.ghost { background: transparent; color: var(--accent-700); box-shadow: none; padding-inline: 0.6rem; }
.btn.ghost:hover { color: var(--ink); }

/* ---------- Sections ---------- */

.band { padding-block: clamp(3rem, 7vw, 5rem); }
.band.tint { background: var(--paper-alt); }

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

/* Three numbered steps, drawn like the app's onboarding rows. */
.steps {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 1rem;
}
.steps li {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.steps .n {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent-200);
  color: var(--accent-700);
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.steps li:last-child .n { background: var(--sage-200); color: var(--sage-700); }
.steps h3 { margin-bottom: 0.35em; }
.steps p { color: var(--ink-soft); margin: 0; }

.ticks { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.ticks li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1.4rem 1fr;
  gap: 0.75rem;
  align-items: start;
}
.ticks li::before {
  content: '';
  width: 14px; height: 14px;
  border-radius: 50%;
  margin-top: 0.4em;
}
.ticks li:nth-child(4n+1)::before { background: var(--accent-500); }
.ticks li:nth-child(4n+2)::before { background: var(--accent-400); }
.ticks li:nth-child(4n+3)::before { background: var(--sage-500); }
.ticks li:nth-child(4n+4)::before { background: var(--accent-700); }

/* The privacy promise gets its own card: it is the product's main difference. */
.promise {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  box-shadow: var(--shadow-sm);
  border-left: 8px solid var(--sage-500);
}
.promise p:last-child { margin-bottom: 0; }

.facts { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.facts li { padding: 0.7rem 0; border-bottom: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 0.3rem 1.5rem; }
.facts b { min-width: 9rem; }

/* ---------- Text pages (support, 404) ---------- */

.page { padding-block: clamp(2.5rem, 6vw, 4rem) clamp(3rem, 7vw, 5rem); }
.page h2 { font-size: 1.5rem; margin-top: 2.4rem; }
.page h3 { margin-top: 1.8rem; }
.page ul:not(.facts) { padding-left: 1.2rem; }
.page li { margin-bottom: 0.5em; }

/* Drafted copy awaiting the owner's read. See README. */
mark.fill {
  background: #ffd98a;
  border-bottom: 2px solid var(--accent-700);
  padding: 0 0.2em;
  color: var(--ink);
}

/* ---------- Footer ---------- */

.site-foot {
  border-top: 1px solid var(--rule);
  padding-block: 2.5rem 3rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: baseline; }
.site-foot nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.site-foot a { color: var(--ink-soft); text-decoration: none; }
.site-foot a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Hero artwork ---------- */

.hero-art .fillshape { opacity: 0; animation: ink-in 0.6s ease-out forwards; transform-origin: center; transform-box: fill-box; }
.hero-art .fillshape:nth-of-type(1) { animation-delay: 0.15s; }
.hero-art .fillshape:nth-of-type(2) { animation-delay: 0.35s; }
.hero-art .fillshape:nth-of-type(3) { animation-delay: 0.55s; }

@keyframes ink-in {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-art .fillshape { opacity: 1; animation: none; }
  * { transition: none !important; }
}

/* ---------- Skip link ---------- */

.skip {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 100;
  transform: translateY(-130%);
  background: var(--ink);
  color: var(--paper);
  padding: 0.7rem 1.1rem;
  text-decoration: none;
  font-weight: 600;
}
.skip:focus { transform: translateY(0); }

/* ---------- Print ---------- */

@media print {
  .site-head, .site-foot, .skip, .actions, .hero-art { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; line-height: 1.5; }
  .band, .page, .hero { padding-block: 0.6rem; }
  .band.tint, .promise, .steps li { background: none; box-shadow: none; }
  a { color: #000; text-decoration: underline; }
  .page a[href^="mailto:"]::after { content: " (" attr(href) ")"; font-size: 9pt; word-break: break-all; }
  mark.fill { background: none; color: #000; border-bottom: 1px solid #999; }
  h1, h2, h3 { break-after: avoid; }
  li, p { break-inside: avoid; }
}
