/* The public pages (public/<slug>/index.html): The Rook's own look (src/styles.css tokens, Nunito, the chunky green
   button), laid out for reading. Flat sections parted by hairlines; no boxed cards, no pills. */
@font-face { font-family: "Nunito Variable"; src: url(/site/fonts/nunito.woff2) format("woff2"); font-weight: 200 1000; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader Variable"; src: url(/site/fonts/newsreader.woff2) format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
:root {
  --page: #2b2926; --side: #211f1d; --card: #383532; --card-edge: #1c1a18; --hover: #403d39;
  --ink: #ffffff; --ink2: #c7c2bb; --ink3: #948f88; --line: #45413d; --line2: #57534e;
  --accent: #6aa83a; --accent-edge: #47792a; --accent-ink: #a3d977; --hi: #ffc83d;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; background: var(--page); color: var(--ink2); font-family: "Nunito Variable", Nunito, ui-sans-serif, system-ui, sans-serif; font-size: 17px; line-height: 28px; -webkit-font-smoothing: antialiased; }
a { color: var(--accent-ink); font-weight: 700; text-decoration: none; outline: none; }
a:hover, a:focus-visible { color: var(--ink); }
::selection { background: rgba(163, 217, 119, 0.28); }

/* top bar */
.top { max-width: 1080px; margin: 0 auto; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-family: "Newsreader Variable", Newsreader, Georgia, serif; font-weight: 700; font-size: 24px; line-height: 32px; }
.brand img { width: 26px; height: 26px; display: block; }
.top-go { font-size: 15px; line-height: 20px; }

/* the text */
main { max-width: 720px; margin: 0 auto; padding: 48px 24px 72px; }
h1 { margin: 0 0 16px; color: var(--ink); font-weight: 900; font-size: 40px; line-height: 48px; }
h2 { margin: 44px 0 10px; color: var(--ink); font-weight: 800; font-size: 22px; line-height: 30px; }
h3 { margin: 28px 0 6px; color: var(--ink); font-weight: 800; font-size: 17px; line-height: 26px; }
p { margin: 0 0 16px; }
b, strong { color: var(--ink); font-weight: 800; }
.lede { margin-bottom: 28px; font-size: 19px; line-height: 30px; }
.meta { margin: -4px 0 32px; color: var(--ink3); font-size: 14px; line-height: 20px; }
ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin: 0 0 8px; padding-left: 2px; }
li::marker { color: var(--ink3); }
hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
code { font-family: ui-monospace, "JetBrains Mono", Consolas, monospace; font-size: 15px; color: var(--ink); }
table { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: 15px; line-height: 22px; }
th { text-align: left; color: var(--ink); font-weight: 800; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line2); }
td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* the one button: the app's chunky green "pri" */
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 32px 0 8px; }
.pri { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 28px; border-radius: 12px; background: var(--accent); box-shadow: 0 4px 0 var(--accent-edge); color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.28); font-size: 17px; font-weight: 800; white-space: nowrap; transition: transform 0.07s ease-out, box-shadow 0.07s ease-out, filter 0.12s ease-out; }
.pri:hover, .pri:focus-visible { color: #fff; filter: brightness(1.08); }
.pri:focus-visible { outline: 3px solid var(--hi); outline-offset: 2px; }
.pri:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--accent-edge); }
.pri svg { flex: none; }
.cta-note { color: var(--ink3); font-size: 14px; line-height: 20px; }

/* a screenshot of the app: wider than the text where there is room */
.shot { position: relative; left: 50%; width: min(960px, 100vw - 48px); transform: translateX(-50%); margin: 40px 0; }
.shot img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 4px 0 var(--card-edge); background: var(--side); }
.shot figcaption { margin-top: 12px; color: var(--ink3); font-size: 14px; line-height: 20px; text-align: center; }

/* pricing: two plans side by side, parted by a hairline */
.plans { display: grid; grid-template-columns: 1fr 1fr; margin: 8px 0 24px; border-top: 1px solid var(--line); }
.plan { padding: 24px 28px 8px 0; }
.plan + .plan { padding: 24px 0 8px 28px; border-left: 1px solid var(--line); }
.plan h2 { margin: 0 0 6px; }
.plan-price { margin: 0; color: var(--ink2); }
.plan-price b { font-size: 34px; line-height: 44px; font-weight: 900; font-variant-numeric: tabular-nums; }
.plan-sub { margin: 0; color: var(--ink3); font-size: 14px; line-height: 20px; }
.plan-line { margin: 16px 0 10px; color: var(--ink); font-weight: 700; }
.plan ul { padding-left: 20px; font-size: 16px; line-height: 24px; }

/* footer */
.foot { max-width: 1080px; margin: 0 auto; padding: 28px 24px 40px; border-top: 1px solid var(--line); }
.foot-row { display: flex; flex-wrap: wrap; gap: 0 22px; margin-bottom: 6px; }
.foot-row a { color: var(--ink2); font-size: 14px; line-height: 32px; font-weight: 700; }
.foot-row a:hover, .foot-row a:focus-visible, .foot-row a[aria-current="page"] { color: var(--ink); }
.foot-note { margin: 10px 0 0; color: var(--ink3); font-size: 13px; line-height: 20px; }
.foot-note a { color: var(--ink3); font-weight: 400; }
.foot-note a:hover { color: var(--ink); }

@media (max-width: 640px) {
  body { font-size: 16px; line-height: 26px; }
  .top { padding: 0 16px; }
  main { padding: 32px 16px 56px; }
  h1 { font-size: 30px; line-height: 38px; }
  h2 { font-size: 20px; line-height: 28px; margin-top: 36px; }
  .lede { font-size: 17px; line-height: 27px; }
  .shot { width: calc(100vw - 32px); margin: 28px 0; }
  .plans { grid-template-columns: 1fr; }
  .plan, .plan + .plan { padding: 20px 0 4px; border-left: 0; }
  .plan + .plan { border-top: 1px solid var(--line); }
  .foot { padding: 24px 16px 32px; }
  .pri { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .pri { transition: none; } }
