/*
 * The published pages of capsakey.com — the landing page and the legal documents.
 *
 * ⛔ Self-contained on purpose: no font from a CDN, no stylesheet from anywhere else, nothing that
 *    fetches. A privacy policy that loads a third-party asset in order to be read contradicts itself
 *    in the first second, and these pages are read by exactly the sort of person who checks.
 *
 * The accent is the product's own default, so the site and the widget agree.
 */
/*
 * The product's own palette, not a second one: `#0e6a5e` is the widget's default accent, and the
 * radius and the muted tone are the values the portal uses on a firm's site. Somebody who reads this
 * page and then installs the app should recognise the same object.
 */
:root {
  --ink: #14181a;
  --muted: #5a6663;
  --line: #e4e9e6;
  --paper: #ffffff;
  --raised: #f6f9f7;
  --cream: #faf8f4;
  --accent: #0e6a5e;
  --accent-ink: #ffffff;
  --radius: 10px;
}

/*
 * ⛔ **Light only, on purpose, and this used to be a dark-first page.**
 *
 * The product itself is a light document surface — the portal sits on a firm's own site, the console
 * is a light dashboard — and this page is read by an accountant deciding whether to trust it, not by
 * a developer. A page that flips to a dark terminal palette on half the machines that open it looks
 * like a tool for engineers, which is precisely what a practice is not buying. `growingpeas.dev` is
 * where the developer voice lives; this one belongs to the product.
 *
 * ⚠️ So there is no `prefers-color-scheme` block here. That is a deliberate departure, not an
 *    oversight: the page commits to one look and paints every colour explicitly, background included.
 */

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.7 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

/*
 * ⚠️ 48rem and a 3.5rem top: the first version ran at 46rem with 2.5rem, and the page read as
 *    "compressed" — not because the line length was wrong but because nothing had room around it.
 *    Space between blocks is what tells a reader where one idea ends.
 */
.wrap { max-width: 48rem; margin: 0 auto; padding: 3.5rem 1.5rem 5rem; }

header.site {
  border-bottom: 1px solid var(--line);
  background: var(--raised);
}
header.site .wrap { padding: 1rem 1.25rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: baseline; }
header.site a.brand {
  font-weight: 650; color: var(--ink); text-decoration: none; letter-spacing: -0.01em;
  display: inline-flex; align-items: center; gap: 0.55rem; font-size: 1.05rem;
}
header.site a.brand img { width: 26px; height: 26px; border-radius: 6px; }
header.site nav { display: flex; flex-wrap: wrap; gap: 1rem; margin-left: auto; }
header.site nav a { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
header.site nav a:hover, header.site nav a:focus { color: var(--accent); text-decoration: underline; }

/* Fluid rather than fixed: the headline is the one element that should use a wide screen. */
h1 { font-size: clamp(2rem, 1.4rem + 2.2vw, 2.9rem); line-height: 1.15; letter-spacing: -0.025em; margin: 0 0 0.75rem; }
h2 { font-size: 1.4rem; margin: 3.25rem 0 0.75rem; letter-spacing: -0.015em; }
h3 { font-size: 1.05rem; margin: 1.5rem 0 0.35rem; }
p, ul, ol { margin: 0 0 1rem; }
li { margin-bottom: 0.4rem; }
a { color: var(--accent); }

.updated { color: var(--muted); font-size: 0.9rem; margin: 0 0 2rem; }
.lead { font-size: 1.2rem; line-height: 1.6; color: var(--muted); max-width: 34em; margin-bottom: 2rem; }

strong { font-weight: 650; }

/* Wide content scrolls inside its own box; the page itself never scrolls sideways. */
.scroll { overflow-x: auto; margin: 0 0 1.25rem; }
table { border-collapse: collapse; width: 100%; font-size: 0.94rem; }
th, td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); }
th { font-weight: 650; background: var(--raised); white-space: nowrap; }

.note {
  border-left: 3px solid var(--accent);
  background: var(--raised);
  padding: 0.85rem 1rem;
  margin: 0 0 1.25rem;
  border-radius: 0 6px 6px 0;
}
.note p:last-child { margin-bottom: 0; }

footer.site {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
footer.site .wrap { padding: 1.5rem 1.25rem 2.5rem; }
footer.site a { color: var(--muted); }

/* The landing page only. */
.hero { background: var(--cream); border-bottom: 1px solid var(--line); }
.hero .wrap { padding-top: 4rem; padding-bottom: 3rem; }
.hero h1 { max-width: 18em; }

/* Numbered, because "how it works" is a sequence and a bulleted list hides that. */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 2.5rem; }
.steps li {
  counter-increment: step; position: relative; padding: 0 0 0 3rem; margin-bottom: 1.15rem;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -0.1rem;
  width: 2rem; height: 2rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
  font-size: 0.9rem; font-weight: 650;
}
.closing { margin-top: 2.5rem; }
.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); margin: 0 0 2.5rem; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem 1.4rem; background: var(--raised); }

/* Two buttons on one line, wrapping to two on a phone rather than overflowing. */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 0.75rem; }
.cta.ghost { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.under { color: var(--muted); font-size: 0.95rem; margin-bottom: 2.5rem; }

/*
 * The one image on the site. A portal app that shows no portal asks the reader to imagine it, and
 * most readers decline. Served from our own domain like everything else here: no third-party fetch.
 */
.shot { margin: 0 0 3rem; }
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--raised);
}
.shot figcaption { color: var(--muted); font-size: 0.9rem; margin-top: 0.6rem; }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.cta {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 600;
  padding: 0.75rem 1.35rem;
  border-radius: 9px;
}
.cta:hover, .cta:focus { filter: brightness(1.08); }

/* The publisher's legal identity, required on the site by the e-commerce directive (2000/31/EC,
   art. 5) and by the DPA, which is a contract and must name both of its parties. Smaller than the
   rest of the footer because it is a legal mention, not a thing to read. */
footer.site .entity { font-size: 0.85em; opacity: 0.75; }
