/* The stilla website. Colours come from tokens.css (the brand's roles), never raw hex.
   No JavaScript, no third-party requests: fonts are served from here. */
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-latin-600-normal.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --line: color-mix(in srgb, var(--text-muted) 28%, transparent);
  --wide: 64rem;
  --narrow: 40rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; color-scheme: light dark; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.65 var(--font-ui);
}
a { color: var(--accent); text-underline-offset: 0.18em; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 1.9rem); margin-bottom: 0.9rem; }
h3 { font-size: 1.2rem; margin: 1.8rem 0 0.4rem; }
p { margin: 0 0 1rem; }
img { max-width: 100%; height: auto; }
.muted { color: var(--text-muted); }
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: var(--narrow); }

/* Header and footer */
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; padding: 1.25rem 0; }
.site-header .logo img { display: block; height: 2.5rem; width: auto; }
.site-header nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1.4rem; font-weight: 600; }
.site-header nav a { text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; }
.site-header nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
.site-footer { border-top: 1px solid var(--line); margin-top: 4rem; padding: 2rem 0 3rem; color: var(--text-muted); font-size: 0.95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; }

/* Buttons */
.btn { display: inline-block; padding: 0.6rem 1.3rem; border-radius: var(--radius); font-weight: 600; text-decoration: none; background: var(--button-bg); color: var(--on-brand); border: 1px solid transparent; }
.btn:hover { filter: brightness(1.08); }
.btn.secondary { background: var(--surface); color: var(--text); border-color: var(--line); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* Home */
.hero { padding: 3rem 0 2.5rem; }
.hero .lede { font-size: 1.25rem; color: var(--text-muted); max-width: 38rem; margin: 1.1rem 0 0; }
.hero .invite { margin: 1.1rem 0 0; color: var(--text-muted); font-size: 0.97rem; }
.shot { margin: 2.2rem 0 0; }
.shot img { display: block; width: 100%; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px -18px color-mix(in srgb, var(--text) 55%, transparent); }
.shot figcaption { margin-top: 0.6rem; color: var(--text-muted); font-size: 0.93rem; }
section { padding: 3rem 0 0.5rem; }
.steps { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); counter-reset: step; padding: 0; list-style: none; margin: 1.5rem 0 0; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--surface); font-weight: 700; margin-bottom: 0.6rem; }
.steps h3 { margin: 0 0 0.3rem; }
.two { display: grid; gap: 2.2rem; grid-template-columns: 1fr; margin-top: 1.2rem; max-width: 46rem; }
.two .shot { margin: 0; }
.features { display: grid; gap: 1.2rem 2rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); padding: 0; list-style: none; margin: 1.5rem 0 0; }
.features h3 { margin: 0 0 0.25rem; font-size: 1.1rem; }
.features p { margin: 0; color: var(--text-muted); font-size: 0.98rem; }
.later { background: var(--surface); border-radius: 10px; padding: 1.4rem 1.6rem; margin-top: 1.5rem; }
.later ul { margin: 0.5rem 0 0; padding-left: 1.2rem; }
.cta { text-align: center; padding: 4rem 0 0; }
.cta p { color: var(--text-muted); }
.cta .actions { justify-content: center; }

/* Text pages (guide, privacy, pricing text) */
.page-head { padding: 2rem 0 1rem; }
.page-head .lede { font-size: 1.15rem; color: var(--text-muted); margin: 0.9rem 0 0; }
.prose h2 { margin-top: 2.8rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: 0.4rem; }
.toc { background: var(--surface); border-radius: 10px; padding: 1rem 1.4rem; margin: 1.2rem 0 0; }
.toc ol { columns: 2 14rem; margin: 0; padding-left: 1.2rem; }
.toc li { margin: 0.15rem 0; }
code, pre, kbd { font-family: var(--font-mono); font-size: 0.9em; }
code, kbd { background: var(--surface); padding: 0.1em 0.35em; border-radius: 4px; overflow-wrap: anywhere; }
pre { background: var(--surface); border-radius: 8px; padding: 1rem 1.1rem; overflow-x: auto; line-height: 1.6; margin: 0 0 1rem; }
pre code { background: none; padding: 0; overflow-wrap: normal; }
table { width: 100%; border-collapse: collapse; margin: 0 0 1.2rem; font-size: 0.97rem; }
th, td { text-align: left; vertical-align: top; padding: 0.55rem 0.8rem 0.55rem 0; border-bottom: 1px solid var(--line); }
th { font-weight: 600; }
.note { border-left: 3px solid var(--brand); padding: 0.1rem 0 0.1rem 1rem; color: var(--text-muted); margin: 1.2rem 0; }
.badge { display: inline-block; font-size: 0.78rem; font-weight: 600; padding: 0.1rem 0.55rem; border-radius: 999px; background: var(--surface); color: var(--text-muted); vertical-align: middle; }

/* Pricing */
.plans { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); margin: 2rem 0 0; }
.plan { border: 1px solid var(--line); border-radius: 12px; padding: 1.6rem; }
.plan.feature { border-color: var(--brand); }
.plan h2 { margin: 0 0 0.2rem; font-size: 1.5rem; }
.price { font-family: var(--font-display); font-size: 2.3rem; line-height: 1.1; margin: 0.6rem 0 0.2rem; }
.price small { font-family: var(--font-ui); font-size: 0.95rem; color: var(--text-muted); font-weight: 400; }
.plan ul { padding-left: 1.2rem; margin: 1rem 0 0; }
.plan li { margin-bottom: 0.45rem; }
.faq h3 { margin-top: 1.6rem; }
