/* Ravenwood Cloud's own pages (sign-in, your workspaces). The board itself uses app.css. */
:root { color-scheme: light dark; --bg: #f7f7f5; --fg: #1d1f23; --muted: #5b6270; --accent: #2f5bd3; --line: #d9dbe0; --err: #a4262c; }
@media (prefers-color-scheme: dark) { :root { --bg: #15171b; --fg: #e8e9ec; --muted: #a3a9b6; --accent: #8fb0ff; --line: #30343c; --err: #ff9a9f; } }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; }
main { max-width: 760px; margin: 0 auto; padding: 28px 16px 64px; position: relative; z-index: 1; }
h1 { font-size: 28px; margin: 0 0 8px; }
h2 { font-size: 18px; margin: 32px 0 8px; }
.lede { font-size: 20px; color: var(--muted); margin-top: 0; }
.muted { color: var(--muted); font-size: 14px; }
.error { color: var(--err); }
a { color: var(--accent); }
.button, button { display: inline-block; padding: 10px 16px; border-radius: 8px; border: 1px solid var(--line); background: var(--accent); color: var(--bg); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
button.link { background: none; color: var(--accent); border: none; padding: 0; font-weight: 400; text-decoration: underline; }
button.secondary { background: none; color: var(--accent); border-color: var(--accent); margin-top: 6px; }
label { display: block; margin: 12px 0; }
input { font: inherit; padding: 8px 10px; border-radius: 6px; border: 1px solid var(--line); background: transparent; color: inherit; width: 100%; max-width: 320px; }
ul.workspaces { padding-left: 18px; }
ul.workspaces li { margin: 6px 0; }
code { font: 14px ui-monospace, SFMono-Regular, Menlo, monospace; background: color-mix(in srgb, var(--line) 50%, transparent); padding: 2px 6px; border-radius: 4px; overflow-wrap: anywhere; }
form[data-action] { margin: 8px 0 16px; }

/* ---------- Your workspaces (October 6, 2026): the mark, your workspaces as cards, the rest folded ---------- */
:root { --surface: #ffffff; --raven: #E57B2A; --wood: #1B7FB0; --danger: #a4262c; --wm-ink: rgba(20, 25, 37, .06); }
@media (prefers-color-scheme: dark) { :root { --surface: #1d2026; --danger: #ff9a9f; --wm-ink: rgba(230, 233, 240, .06); } }
header.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 50%; }
.wm { font-family: "IBM Plex Sans Condensed", "Arial Narrow", system-ui, sans-serif; font-weight: 700; font-size: 22px; letter-spacing: .05em; line-height: 1; }
.wm .w1 { color: var(--raven); } .wm .w2 { color: var(--wood); }
.who { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.who form { margin: 0; }
.ws-grid { list-style: none; padding: 0; margin: 12px 0 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 14px; }
.ws-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 14px; box-shadow: 0 1px 2px rgba(20,25,37,.06), 0 6px 18px rgba(20,25,37,.06); transition: border-color .15s, transform .15s; }
.ws-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.ws-open { display: block; text-decoration: none; color: inherit; }
.ws-open::after { content: ""; position: absolute; inset: 0; border-radius: 14px; } /* the whole card opens the workspace */
.ws-open:focus-visible::after { outline: 2px solid var(--accent); outline-offset: 2px; }
.ws-name { display: block; font-size: 22px; font-weight: 700; line-height: 1.2; }
.ws-addr { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; overflow-wrap: anywhere; }
.ws-meta { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; }
.ws-settings { position: relative; z-index: 1; margin-left: auto; font-size: 14px; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .02em; border: 1px solid var(--line); color: var(--muted); }
.badge.plan-pro, .badge.plan-team, .badge.plan-internal { color: var(--wood); border-color: var(--wood); }
.empty { font-size: 17px; }
details.fold { border-top: 1px solid var(--line); padding: 10px 0; }
details.fold > summary { cursor: pointer; font-weight: 600; color: var(--muted); list-style: none; padding: 4px 0; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::before { content: "+"; display: inline-block; width: 1.2em; color: var(--accent); font-weight: 700; }
details.fold[open] > summary::before { content: "\2212"; }
details.fold.gone > summary { font-weight: 500; font-size: 14px; }
.addr-row { display: flex; align-items: center; gap: 6px; }
.addr-row input { max-width: 220px; }
ul.gone-list { list-style: none; padding: 0; margin: 8px 0 0; }
ul.gone-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
ul.gone-list li:last-child { border-bottom: 0; }
ul.gone-list form { margin: 6px 0 0; }
button.danger { background: none; color: var(--danger); border-color: var(--danger); }
/* The Ravenwood mark as a watermark, bottom right, behind everything; tinted to the page, never in the way. */
.page-wm { position: fixed; right: -6vmin; bottom: -8vmin; width: min(52vw, 560px); aspect-ratio: 1; z-index: 0; pointer-events: none;
  background: var(--wm-ink); -webkit-mask: url(/assets/wm-raven.png) center/contain no-repeat; mask: url(/assets/wm-raven.png) center/contain no-repeat; }
@media (max-width: 600px) { .page-wm { width: 80vw; right: -14vw; bottom: -10vw; } }
@media print, (forced-colors: active) { .page-wm { display: none; } }

/* ---------- A workspace's settings (October 6, 2026): the workspace up top, then cards ---------- */
.hero { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px 22px 18px; box-shadow: 0 1px 2px rgba(20,25,37,.06), 0 6px 18px rgba(20,25,37,.06); }
.hero h1 { margin: 0; font-size: 30px; }
.hero .ws-addr { margin: 2px 0 0; }
.hero-meta { margin: 12px 0 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.button.big { padding: 12px 22px; font-size: 16px; border-radius: 10px; }
.notice { border: 1px solid var(--danger); border-radius: 10px; padding: 10px 14px; margin-top: 12px; }
#msg:empty { display: none; }
#msg { margin: 12px 0 0; padding: 10px 14px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 10%, transparent); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px 20px; margin-top: 18px; }
.panel h2 { margin: 0 0 12px; font-size: 18px; }
.panel p { margin: 8px 0; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.plan-card { border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.plan-card.featured { border-color: var(--wood); }
.plan-card.current { border-width: 2px; border-color: var(--accent); }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan-name { font-weight: 700; font-size: 18px; }
.badge.plan-current { color: var(--accent); border-color: var(--accent); }
.price { display: flex; align-items: baseline; gap: 4px; }
.price .amt { font-size: 30px; font-weight: 700; line-height: 1; }
.price .per { color: var(--muted); font-size: 14px; }
ul.perks { list-style: none; padding: 0; margin: 0; font-size: 14px; display: grid; gap: 4px; }
ul.perks li::before { content: "\2713"; color: var(--wood); font-weight: 700; margin-right: 8px; }
.plan-buy { margin-top: auto; display: grid; gap: 6px; }
.plan-buy button { width: 100%; }
.plan-buy button.secondary { margin-top: 0; font-size: 14px; padding: 8px 10px; }
.plan-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.plan-foot button.secondary { margin-top: 0; }
.copy-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.copy-row code { flex: 1 1 260px; padding: 9px 12px; font-size: 14px; }
.copy-row button.secondary { margin-top: 0; padding: 8px 14px; }
ul.people { list-style: none; padding: 0; margin: 0; }
ul.people li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
ul.people li:last-child { border-bottom: 0; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 700; background: color-mix(in srgb, var(--wood) 18%, transparent); color: var(--wood); flex: none; }
.person { display: flex; flex-direction: column; min-width: 0; flex: 1 1 180px; overflow-wrap: anywhere; }
form.invite { margin-top: 14px; display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
form.invite label { margin: 0; flex: 1 1 240px; }
form.invite label.check { flex: 0 0 auto; display: flex; gap: 6px; align-items: center; font-size: 14px; }
form.invite label.check input { width: auto; }
details.danger-zone { margin-top: 24px; }
details.danger-zone > summary { color: var(--danger); font-size: 14px; font-weight: 500; }
.plan-buy form { margin: 0; display: grid; gap: 6px; }
.plan-buy form.seats label { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 14px; }
.plan-buy form.seats input { max-width: 90px; }
.small { font-size: 13px; }
/* Room left for new workspaces (October 6): a quiet line, the error color once there's none. */
details.fold.new .room { margin: 6px 0 10px; padding: 8px 12px; border-left: 3px solid var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); border-radius: 6px; font-size: 14px; }
details.fold.new .room.full { border-left-color: var(--err); background: color-mix(in srgb, var(--err) 8%, transparent); }
button[disabled] { opacity: .5; cursor: not-allowed; }
/* Deleting a workspace that pays (October 6): the warning can't be missed, and the box must be ticked. */
.big-warning { border: 2px solid var(--danger); background: color-mix(in srgb, var(--danger) 9%, transparent); border-radius: 10px; padding: 12px 16px; margin: 10px 0; }
.big-warning b { color: var(--danger); }
.big-warning ul { margin: 8px 0 0; padding-left: 20px; }
.big-warning li { margin: 3px 0; }
label.check.ack { display: flex; gap: 10px; align-items: flex-start; justify-content: flex-start; font-weight: 600; margin: 10px 0; }
label.check.ack input { width: 18px; height: 18px; flex: 0 0 auto; margin: 2px 0 0; accent-color: var(--danger); }
.gone-plan { display: block; color: var(--danger); font-size: 13px; margin-top: 2px; }

/* ---------- The front door (October 6, 2026: "spice up the front door, it is very bland") ---------- */
main.wide { max-width: 1120px; padding-top: 18px; }
.land-top { margin-bottom: 8px; }
.land-signin { font-weight: 600; text-decoration: none; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; }
.land-signin:hover { border-color: var(--accent); }
.land-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 48px 0 40px; }
.land-kicker { display: inline-block; margin: 0 0 14px; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: .02em;
  color: var(--raven); background: color-mix(in srgb, var(--raven) 12%, transparent); }
.land-hero h1 { font-size: clamp(36px, 5.2vw, 58px); line-height: 1.04; letter-spacing: -.02em; margin: 0 0 18px; }
.grad { background: linear-gradient(100deg, var(--raven), var(--wood)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.land-lede { font-size: 19px; color: var(--muted); margin: 0 0 24px; max-width: 34em; }
.land-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; }
.button.ghost { background: transparent; color: var(--accent); border-color: var(--accent); }
/* The little board */
.mock { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px; font-size: 13px;
  box-shadow: 0 2px 4px rgba(20,25,37,.06), 0 24px 48px -12px rgba(20,25,37,.22); }
.mock-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; color: var(--muted); }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock-bar b { margin-left: 8px; color: var(--fg); }
.mock-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mock-col h4 { margin: 0 0 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.mock-card { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 8px 9px; margin-bottom: 8px; line-height: 1.3; }
.mock-card .k { display: block; font-style: normal; font-size: 11px; color: var(--muted); margin-bottom: 2px; }
.mock-card.live { border-color: var(--raven); box-shadow: 0 0 0 3px color-mix(in srgb, var(--raven) 18%, transparent); }
.mock-card.done { border-color: color-mix(in srgb, var(--wood) 60%, var(--line)); }
.mock-note { display: block; margin-top: 6px; font-size: 11px; color: var(--wood); }
.mock-note.parked { color: var(--raven); }
.mock-check { margin-top: 6px; padding-top: 10px; border-top: 1px dashed var(--line); display: grid; gap: 4px; color: var(--muted); }
.mock-check b { color: var(--fg); }
.mock-check code { font-size: 11px; padding: 1px 4px; }
/* Sections */
.land-sec { padding: 28px 0; }
.land-sec h2, .land-end h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -.01em; margin: 0 0 8px; }
.land-sub { color: var(--muted); margin: 0 0 18px; }
.land-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.land-feat { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; position: relative; overflow: hidden; }
.land-feat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--raven); }
.land-feat.wood::before { background: var(--wood); }
.land-feat h3 { margin: 0 0 6px; font-size: 17px; }
.land-feat p { margin: 0; color: var(--muted); font-size: 15px; }
.land-steps { list-style: none; counter-reset: step; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.land-steps li { counter-increment: step; display: grid; gap: 4px; padding: 18px 20px 18px 64px; position: relative; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.land-steps li::before { content: counter(step); position: absolute; left: 18px; top: 16px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--raven), var(--wood)); }
.land-steps span { color: var(--muted); font-size: 15px; }
.land-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.land-plan { border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; background: var(--surface); }
.land-plan.featured { border: 2px solid var(--wood); }
.land-plan h3 { margin: 0; font-size: 18px; }
.land-price { margin: 8px 0 12px; display: flex; align-items: baseline; gap: 6px; }
.land-price b { font-size: 34px; line-height: 1; }
.land-price span { color: var(--muted); font-size: 14px; }
.land-plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-size: 15px; }
.land-plan li::before { content: "\2713"; color: var(--wood); font-weight: 700; margin-right: 8px; }
.land-end { text-align: center; padding: 48px 20px; margin: 28px 0 8px; border-radius: 22px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--raven) 14%, var(--surface)), color-mix(in srgb, var(--wood) 14%, var(--surface))); border: 1px solid var(--line); }
.land-end p { margin: 14px 0 0; }
.land-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 14px; padding: 18px 0 0; }
@media (max-width: 860px) {
  .land-hero { grid-template-columns: 1fr; gap: 28px; padding-top: 28px; }
}
@media (max-width: 480px) { .mock-cols { grid-template-columns: 1fr 1fr; } .mock-col:last-child { display: none; } }
/* Sign in: the same brand, a card, the watermark. */
.signin-card { max-width: 420px; margin: 40px auto 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px 26px 18px;
  box-shadow: 0 1px 2px rgba(20,25,37,.06), 0 12px 32px -8px rgba(20,25,37,.18); }
.signin-card h1 { font-size: 24px; margin: 0 0 6px; }
.signin-card .button { display: block; text-align: center; width: 100%; box-sizing: border-box; margin: 10px 0; }
/* Cards sit above the watermark (it's a later sibling inside main). */
.land-hero, .land-feat, .land-steps li, .land-plan, .land-end, .land-foot, .land-top, .signin-card { position: relative; z-index: 1; }
/* Sign-in buttons in each provider's own style: a mark, the provider's name, the shape their guidelines describe. */
.sso { display: grid; gap: 10px; margin: 18px 0 6px; }
.sso-btn { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 46px; padding: 0 16px; border-radius: 10px;
  font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid; transition: transform .06s ease, box-shadow .15s ease, background .15s ease; }
.sso-btn:hover { box-shadow: 0 2px 10px rgba(20,25,37,.14); }
.sso-btn:active { transform: translateY(1px); }
.sso-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.sso-btn svg { flex: 0 0 auto; }
.sso-google { background: #fff; color: #1f1f1f; border-color: #747775; }
.sso-microsoft { background: #fff; color: #5e5e5e; border-color: #8c8c8c; }
.sso-github { background: #24292f; color: #fff; border-color: #24292f; }
.sso-apple { background: #000; color: #fff; border-color: #000; } /* Apple's sign-in button: black, or white on dark */
@media (prefers-color-scheme: dark) {
  .sso-google { background: #131314; color: #e3e3e3; border-color: #8e918f; }
  .sso-microsoft { background: #2f2f2f; color: #fff; border-color: #2f2f2f; }
  .sso-github { background: #f6f8fa; color: #24292f; border-color: #d0d7de; }
  .sso-apple { background: #fff; color: #000; border-color: #fff; }
}
.sso-note { font-size: 13px; color: var(--muted); margin: 12px 0 4px; }
.signin-card { text-align: center; }
.signin-card .signin-mark { border-radius: 50%; margin: 0 auto 10px; display: block; }
.signin-card .sso-note, .signin-card .error { text-align: left; }

/* ---------- New workspace: pick a template (RC-26) ---------- */
fieldset.tpl-pick { border: 0; padding: 0; margin: 12px 0 4px; display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
fieldset.tpl-pick legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
label.tpl { position: relative; margin: 0; display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; }
label.tpl input { position: absolute; opacity: 0; width: 1px; height: 1px; }
label.tpl .tpl-name { font-weight: 700; }
label.tpl .tpl-pitch { color: var(--muted); font-size: 13.5px; line-height: 1.4; }
label.tpl:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent); }
label.tpl:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Legal pages and the business footer (RC-28). */
.legal { max-width: 760px; margin: 24px auto 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px 28px; position: relative; z-index: 1; line-height: 1.6; }
.legal h1 { margin: 0 0 4px; font-size: clamp(26px, 4vw, 34px); }
.legal h2 { font-size: 19px; margin: 26px 0 6px; }
.legal p, .legal li { font-size: 16px; }
.legal ul { padding-left: 20px; display: grid; gap: 6px; }
.legal-foot { align-items: flex-start; border-top: 1px solid var(--line); margin-top: 24px; position: relative; z-index: 1; }
.legal-who { display: grid; gap: 2px; }
.legal-who b { color: var(--fg); }
.legal-links { display: flex; gap: 16px; flex-wrap: wrap; }
@media (max-width: 600px) { .legal { padding: 18px 16px; border-radius: 14px; } }
