/* spreadsheet-cook.com: one stylesheet for the site (owner 2026-10-10: a release-ready
   frontend, captured into Figma as a template the owner then restyles).
   The look is unchanged: Segoe UI, a teal accent on a cool paper page, a dark photo hero.
   The fleet CSP is default-src 'self', so styles live here, not in the page. */

:root {
  --ink: #12181f;
  --ink-2: #1c2530;
  --paper: #f7f8fa;
  --card: #ffffff;
  --line: #d5dce3;
  --muted: #55616d;
  --accent: #2f7d8f;
  --accent-dark: #256676;
  --ok: #17683a;
  --err: #b3261e;
  --wide: 1000px;
  --r: 8px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
a { color: var(--accent-dark); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid #f2b705; outline-offset: 2px; border-radius: 2px; }
img { max-width: 100%; height: auto; }
code { font-family: Consolas, "Cascadia Mono", monospace; font-size: .92em; overflow-wrap: anywhere; }
h1, h2, h3 { color: var(--ink-2); line-height: 1.15; margin: 0; }
h2 { font-size: 1.6rem; margin-bottom: .5rem; }
h3 { font-size: 1.08rem; margin-bottom: .35rem; }
p { margin: 0 0 1rem; }
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 1.4rem; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 46em; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: 8px; top: -60px; background: #fff; color: var(--ink); padding: .5rem .8rem; border-radius: var(--r); z-index: 10; }
.skip:focus { top: 8px; }

section { padding: 2.6rem 0 0; }
main > section:last-child { padding-bottom: 2.6rem; }

/* ── site header ─────────────────────────────────────────────────────── */
.site-header { background: var(--ink); }
.site-header .wrap { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; min-height: 56px; }
.brand { color: #fff; text-decoration: none; font-weight: 700; font-size: 1.2rem; }
.brand:hover { color: #fff; }
/* The nav sits beside the brand, so the right of the header stays free for BizyClaw's
   account pill (/auth/pill.js: fixed top-right, wider when signed in). Sign in comes from
   the pill, not from this nav. */
.site-nav { margin-left: .4rem; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.3rem; flex-wrap: wrap; align-items: center; }
.site-nav a { color: #d3dae0; text-decoration: none; font-size: .95rem; padding: .35rem 0; display: inline-block; }
.site-nav a:hover { color: #fff; text-decoration: underline; }

/* No prices until the owner sets them (site.json truth rules): the pill's Pricing link leads
   to placeholder TEST prices, so it is hidden here. Remove this rule when real prices exist. */
#rk-auth a[href="/auth/pricing"] { display: none; }

/* ── buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-block; font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2;
  padding: .75rem 1.4rem; border-radius: var(--r); border: 1.5px solid var(--accent-dark);
  background: var(--accent-dark); color: #fff; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--ink-2); border-color: var(--ink-2); color: #fff; }
.btn:disabled { opacity: .6; cursor: default; }
.btn.ghost { background: transparent; border-color: #fff; }
.btn.ghost:hover { background: #fff; color: var(--ink); }

/* ── hero ────────────────────────────────────────────────────────────── */
.hero {
  padding: 0; color: #fff; min-height: 460px; display: flex; align-items: flex-end;
  background: linear-gradient(180deg, rgba(18,24,31,.55), rgba(18,24,31,.92)), url("/img/hero-grid.png") center/cover;
}
.hero .wrap { width: 100%; padding-top: 3rem; padding-bottom: 2.6rem; }
.badge {
  display: inline-block; background: #fff; color: var(--ink); font-weight: 700; font-size: .8rem;
  letter-spacing: .06em; text-transform: uppercase; padding: .25rem .75rem; border-radius: 999px; margin: 0 0 .9rem;
}
.hero h1 { color: #fff; font-size: clamp(1.9rem, 5vw, 2.6rem); max-width: 17em; margin-bottom: .7rem; }
.hero .sub { font-size: 1.12rem; max-width: 36em; color: #eef2f5; }
.join { max-width: 540px; margin-top: 1.2rem; }
.join form { display: flex; gap: .6rem; flex-wrap: wrap; }
.join input {
  flex: 1 1 220px; min-width: 0; padding: .75rem .9rem; font: inherit; font-size: 1rem;
  border-radius: var(--r); border: 1.5px solid #8794a0; background: #fff; color: var(--ink);
}
.join .btn { background: var(--accent); border-color: var(--accent); color: #fff; }
.join .btn:hover { background: #fff; color: var(--ink); border-color: #fff; }
.submsg { min-height: 1.4em; margin: .6rem 0 0; font-size: .95rem; }
.submsg.ok { color: #a6edc0; }
.submsg.err { color: #ffc9c0; }
.consent { font-size: .85rem; color: #d3dae0; margin: .3rem 0 0; }
.member { font-size: .95rem; margin: .9rem 0 0; color: #eef2f5; }
.member a { color: #fff; }
.member a:hover { color: #f2b705; }

/* ── features ────────────────────────────────────────────────────────── */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 1.2rem; margin-top: 1.2rem; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.feature img { width: 100%; height: 170px; object-fit: cover; display: block; background: #e8edf2; }
/* A toolbar strip is wide and short: show all of it instead of cropping to the card height. */
.feature img.strip { height: auto; object-fit: contain; background: #fff; border-bottom: 1px solid var(--line); }
.feature .body { padding: .9rem 1.1rem 1.1rem; }
.feature p { margin: 0; color: var(--muted); font-size: .92rem; }
.compare { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.3rem; margin: 1.2rem 0 0; }

/* ── built for real workbooks, how it works, licensing ───────────────── */
.ledger { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: .8rem; margin: 1rem 0 0; }
.ledger > div { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: .8rem 1rem; }
.ledger dt { font-weight: 700; color: var(--accent-dark); }
.ledger dd { margin: .2rem 0 0; font-size: .9rem; color: var(--muted); }
.ledger .coming { background: #fbfcfd; border-style: dashed; }
.tag {
  display: inline-block; font-weight: 600; font-size: .75rem; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--muted); border-radius: 999px; padding: 0 .5rem; margin-left: .4rem; vertical-align: middle;
}
.steps { list-style: none; counter-reset: step; margin: 1.2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1rem; }
.steps li { counter-increment: step; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem; }
.steps li::before {
  content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 1.9rem; height: 1.9rem;
  border-radius: 50%; background: var(--accent-dark); color: #fff; font-weight: 700; margin-bottom: .5rem;
}
.steps p { margin: 0; color: var(--muted); font-size: .92rem; }
.steps h3 { margin-bottom: .25rem; }
.points { margin: 1rem 0 0; padding-left: 1.2rem; max-width: 46em; }
.points li { margin: .45rem 0; }

/* ── beta, faq ───────────────────────────────────────────────────────── */
.beta { }
.beta .panel { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent-dark); border-radius: 12px; padding: 1.3rem 1.4rem; }
.beta .actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1rem; }
.beta .btn.alt { background: transparent; color: var(--accent-dark); }
.beta .btn.alt:hover { background: var(--ink-2); color: #fff; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: .75rem 1rem; margin-top: .6rem; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink-2); }
.faq details p { margin: .6rem 0 0; color: var(--muted); }

/* ── pricing page ────────────────────────────────────────────────────── */
.page-head { padding: 2.4rem 0 1.2rem; }
.page-head h1 { font-size: 2.2rem; margin-bottom: .6rem; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin: 1.2rem 0 2rem; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 1.3rem 1.4rem; display: flex; flex-direction: column; }
.plan.main { border-top: 4px solid var(--accent-dark); }
.plan h2 { font-size: 1.35rem; }
.plan .price { font-size: 1.05rem; font-weight: 600; color: var(--ink-2); margin: .2rem 0 .8rem; }
.plan ul { margin: 0 0 1.1rem; padding-left: 1.1rem; color: var(--muted); }
.plan li { margin: .3rem 0; }
.plan .btn { margin-top: auto; align-self: flex-start; }
.table-scroll { overflow-x: auto; margin: .8rem 0 2rem; }
.compare-table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; min-width: 520px; }
.compare-table th, .compare-table td { text-align: left; padding: .65rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare-table thead th { background: var(--ink-2); color: #fff; font-weight: 600; }
.compare-table tbody th { font-weight: 600; color: var(--ink-2); }
.compare-table tr:last-child th, .compare-table tr:last-child td { border-bottom: 0; }

/* ── footer ──────────────────────────────────────────────────────────── */
.site-footer { margin-top: 2.6rem; border-top: 1px solid var(--line); padding: 1.6rem 0 2rem; color: var(--muted); font-size: .9rem; }
.site-footer .wrap { display: flex; gap: .6rem 1.6rem; flex-wrap: wrap; align-items: center; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.2rem; flex-wrap: wrap; }

/* Signed in, the pill (email, Account, API keys, Sign out) is about 480px wide: below this
   width the nav takes its own row under the brand so the pill never covers it. */
@media (max-width: 960px) {
  .site-header .wrap { padding-top: .5rem; padding-bottom: .5rem; }
  .site-nav { margin-left: 0; width: 100%; }
}
@media (max-width: 560px) {
  .hero { min-height: 0; }
  .page-head h1 { font-size: 1.7rem; overflow-wrap: anywhere; }
  .btn { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
