/*
  File: site/site.css
  The one stylesheet for every page. Body text uses the phone's own fonts, so a page costs no font
  download on 3G. Only the wordmark loads a font: two subsets holding its seven letters, 4 KB in all
  (OPEN-116). Brand colours: perfcent repo, .claude/skills/frontend/references/brand.md. Marketing is
  the green context: green arc, dim cobalt stems. Buttons are cobalt, because white on the brand green
  is too faint to read.
*/

@font-face {
  font-family: 'Perfcent Wordmark Sans';
  src: url('/fonts/wordmark-pf.v1.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: 'Perfcent Wordmark Mono';
  src: url('/fonts/wordmark-ercnt.v1.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

:root {
  --navy: #08111F;
  --text: #1F2937;
  --muted: #4B5563;
  --line: #E5E7EB;
  --soft: #F4F7FB;
  --green: #18B26B;
  --green-mid: #1DAA53;
  --green-bright: #25D366;
  --green-text: #0B7A44;
  --green-tint: #EAF8F0;
  --cobalt: #2747F0;
  --cobalt-dark: #1E38C8;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: #FFFFFF;
  line-height: 1.6;
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; }
a { color: var(--cobalt); }
a:hover { color: var(--cobalt-dark); }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 6vw, 3rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.4rem, 4vw, 2rem); letter-spacing: -0.01em; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.25rem; margin: 0 0 1em; }
li { margin-bottom: .35em; }

.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 0; color: #fff; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }

/* Wordmark: p + f in Bricolage Grotesque 800, er + cent in IBM Plex Mono 600, two stems on the c. */
.wordmark { display: inline-flex; align-items: baseline; font-size: 26px; line-height: 1; letter-spacing: -0.02em; text-decoration: none; }
.wordmark .lp, .wordmark .lf { font-family: 'Perfcent Wordmark Sans', system-ui, sans-serif; font-weight: 800; letter-spacing: -0.04em; color: var(--navy); }
.wordmark .ler { font-family: 'Perfcent Wordmark Mono', ui-monospace, monospace; font-weight: 600; color: var(--navy); }
.wordmark .lc { font-family: 'Perfcent Wordmark Mono', ui-monospace, monospace; font-weight: 600; color: var(--green-mid); position: relative; display: inline-block; }
.wordmark .lent { font-family: 'Perfcent Wordmark Mono', ui-monospace, monospace; font-weight: 600; color: var(--green-mid); }
.wordmark .stem { position: absolute; top: 3%; bottom: -13%; width: 0.055em; background: var(--cobalt-dark); border-radius: 1px; }
.wordmark .s1 { left: 34%; }
.wordmark .s2 { left: 60%; }
.site-footer .wordmark .lp, .site-footer .wordmark .lf, .site-footer .wordmark .ler { color: #FFFFFF; }
.site-footer .wordmark .lc, .site-footer .wordmark .lent { color: var(--green-bright); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: #FFFFFF; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.header-links { display: flex; align-items: center; gap: 8px; }
.header-links a.text-link { color: var(--navy); font-weight: 600; text-decoration: none; padding: .5rem; }

/* Buttons */
.btn { display: inline-block; text-align: center; font-weight: 700; text-decoration: none; border-radius: 10px; padding: .8rem 1.25rem; border: 2px solid var(--cobalt); }
.btn-primary { background: var(--cobalt); color: #FFFFFF; }
.btn-primary:hover { background: var(--cobalt-dark); border-color: var(--cobalt-dark); color: #FFFFFF; }
.btn-secondary { background: #FFFFFF; color: var(--cobalt); }
.btn-secondary:hover { background: var(--soft); }
.btn-small { padding: .5rem .9rem; font-size: .95rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.5rem 0 .5rem; }

/* Sections */
section { padding: 56px 0; }
.band { background: var(--soft); }
.eyebrow { display: inline-block; font-size: .85rem; font-weight: 700; color: var(--green-text); background: var(--green-tint); border-radius: 999px; padding: .25rem .75rem; margin-bottom: 1rem; }
.lead { font-size: 1.125rem; color: var(--muted); max-width: 40em; }
.small { font-size: .9rem; color: var(--muted); }

.hero { padding: 48px 0 56px; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) { .hero-grid { grid-template-columns: 1.1fr .9fr; } }

/* The sample invoice in the hero: plain HTML, no image to download. */
.sample { background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: 0 10px 30px rgba(8, 17, 31, .08); font-size: .95rem; }
.sample-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sample-head strong { color: var(--navy); }
.sample table { width: 100%; border-collapse: collapse; }
.sample td { padding: .45rem 0; border-bottom: 1px solid var(--line); }
.sample td:last-child { text-align: right; white-space: nowrap; }
.sample .total td { font-weight: 800; color: var(--navy); border-bottom: 0; padding-top: .75rem; }
.sample .tag { font-size: .8rem; font-weight: 700; color: var(--cobalt-dark); background: #EEF1FE; border-radius: 999px; padding: .15rem .6rem; white-space: nowrap; align-self: flex-start; }

.cards { display: grid; gap: 16px; margin-top: 24px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .cards.three { grid-template-columns: repeat(3, 1fr); } }
.card { background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card.highlight { border: 2px solid var(--green); }

.status { display: inline-block; font-size: .8rem; font-weight: 700; border-radius: 999px; padding: .15rem .6rem; margin-bottom: .6rem; }
.status-live { color: var(--green-text); background: var(--green-tint); }
.status-later { color: #6B4E00; background: #FFF4D6; }

.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 16px; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 0; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--navy); color: #FFFFFF; font-weight: 800; margin-bottom: .6rem; }

.checks { list-style: none; padding: 0; }
.checks li { padding-left: 1.6rem; position: relative; }
.checks li::before { content: ''; position: absolute; left: .2rem; top: .45em; width: .45rem; height: .8rem; border: solid var(--green-text); border-width: 0 3px 3px 0; transform: rotate(45deg); }

/* Legal pages */
.legal { padding-top: 40px; padding-bottom: 56px; } /* top and bottom only: .wrap owns the side gutter */
.legal h1 { margin-bottom: .25rem; }
.legal h2 { font-size: 1.2rem; margin-top: 2rem; padding-left: .75rem; border-left: 3px solid var(--green); }
.updated { color: var(--muted); font-size: .9rem; margin-bottom: 1.5rem; }
.callout { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 1.5rem 0; }

/* Footer */
.site-footer { background: var(--navy); color: #CBD5E1; padding: 40px 0 28px; font-size: .95rem; }
.site-footer a { color: #E2E8F0; }
.footer-grid { display: grid; gap: 24px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h2 { color: #FFFFFF; font-size: 1rem; margin-bottom: .5rem; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer .fine { border-top: 1px solid #1F2A3D; margin-top: 24px; padding-top: 16px; font-size: .85rem; color: #94A3B8; }
