/* The C-suite look for every page of the product: black, Figtree, thin lines, glass cards, one cool accent,
   white pill for the one main action. The same look as the public site (attr-kit landing) and the design file.
   No outside files from here: the two fonts are this site's own (/site/fonts.css, linked by each page), and
   the pages are served with style-src 'self'.
   Sections: tokens · base · top bar · page frame · cards · chips and badges · buttons · forms
   · finds (Add your company) · steps · code · lists and tables · notes and states · footer · phone width. */

/* ---- tokens. Solid hex values where a contrast is checked (test/look-basics); the glass layers sit on top. */
:root { --page:#000000; --surface:#0a0d14; --raise:#121722; --ink:#e8eef8; --ink2:#a3a9b3; --grid:#1e2229; --base:#353a43;
  --s2:#8fb8ff; --s1:#f2c08a; --good:#9fe3b4; --bad:#ffb4a8; --na:#353a43;
  --dim:#7d828b; --bad-ink:#ffb4a8; /* placeholder 5.1:1 on the page; error text above 10:1 on every background */
  --white:#ffffff; --on-white:#05070b;
  --glass:rgba(10, 13, 20, .62); --line:rgba(232, 238, 248, .12); --line2:rgba(232, 238, 248, .2);
  --ease:cubic-bezier(.2,.7,.2,1); /* the one curve every motion uses */
  --r:18px; --r-s:12px; --pill:999px; --gap:16px; --max:1180px; --mid:860px; --narrow:640px;
  --sans: Figtree, -apple-system, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark; }

/* ---- base */
* { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; background: var(--page); } /* a field scrolled to is not under the sticky top bar */
body { background: transparent; color: var(--ink); font: 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; min-height: 100vh; }
body > :where(:not(#field, #scene, script)) { position: relative; z-index: 1; }
a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: rgba(232, 238, 248, .35); }
a:hover { color: var(--white); text-decoration-color: currentColor; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.01em; color: var(--white); }
h1 { font-size: clamp(34px, 4.4vw, 52px); font-weight: 500; line-height: 1.06; letter-spacing: -.025em; margin: 0 0 10px; text-wrap: balance; }
h2 { font-size: 19px; line-height: 1.3; margin: 0 0 8px; }
/* an h2 further down a card (not its title) gets room above it */
.card h2 { margin-top: 28px; }
.card > h2:first-child { margin-top: 0; }
h3 { font-size: 16px; margin: 0 0 6px; }
p { margin: 0 0 10px; }
strong, b { font-weight: 600; color: var(--white); }
.muted { color: var(--ink2); }
.small { font-size: 13px; line-height: 1.5; }
.muted.small, .small.muted { color: var(--dim); }
.hide, [hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--s2); outline-offset: 3px; }
code { font: .92em var(--mono); }

/* The calm field of dust behind the pages (field.mjs). Only drawn on devices that can; without it the page is plain black. */
#field { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; pointer-events: none; opacity: 0; }
#field.on { opacity: 1; }
/* SIGNIN-ANIM: the landing's garden (/site/garden.mjs draws it with csuite.is's own scene.js), placed as on the landing */
#scene { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; pointer-events: none; opacity: 0; }
#scene.on { opacity: 1; }
.garden-out #scene { opacity: 0; }
.signed-moment { min-height: calc(100vh - 160px); padding-bottom: 16vh; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 6px; } /* above the garden's rocks */
.signed-moment h1 { margin: 0; }
.signed-moment > * { text-shadow: 0 0 18px #000, 0 0 6px #000; } /* readable over the garden's bright rocks */
.garden-out .signed-moment { opacity: 0 !important; } /* over the landing's scroll fade, set on the element itself */
/* the fades, only for viewers who get motion (with reduce the garden is still and the moment goes straight to Home) */
@media (prefers-reduced-motion: no-preference) {
  #scene, .signed-moment { transition: opacity 300ms var(--ease); }
}

/* ---- top bar: brand · company · tabs · sign out. The tabs are one list (TABS in site.mjs),
   so a later tab is one more entry; on a phone the tabs scroll sideways on a row of their own. */
#top { position: sticky; top: 0; z-index: 20; background: rgba(0, 0, 0, .62); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
#top:empty { min-height: 57px; } /* before the menu is drawn: its room is kept, so nothing below jumps when it arrives */
#top nav { max-width: none; margin: 0 auto; padding: 10px 32px; display: flex; gap: 8px 22px; align-items: center; flex-wrap: wrap; min-height: 56px; }
#top .brand { display: inline-flex; align-items: center; font-size: 13px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--white); text-decoration: none; white-space: nowrap; padding: 10px 0; margin: -10px 0; } /* tall enough to press, without moving anything */
#top .co { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border: 1px solid var(--line); border-radius: var(--pill); color: var(--ink2); font-size: 13px; max-width: 26ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#top .co::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--s2); flex: none; }
#top .tabs { display: inline-flex; gap: 4px; border: 0; overflow: hidden; margin-left: 0; }
#top a.tab { color: var(--ink2); text-decoration: none; padding: 7px 13px; font-size: 14px; font-weight: 500; border-radius: var(--pill); white-space: nowrap; }
#top a.tab:hover { color: var(--white); }
#top a.tab.on { background: var(--white); color: var(--on-white); font-weight: 600; }
#top .grow { flex: 1; }
#top button { padding: 5px 16px; font-size: 13px; min-height: 36px; }
#top button.quiet { border-color: var(--line2); color: var(--ink); }
#top button.quiet:hover { border-color: rgba(232, 238, 248, .4); }

/* ---- page frame: .wrap is the page; .head is a page's title, one line under it, and its action */
.wrap { max-width: var(--max); margin: 0 auto; padding: 64px 32px 72px; }
.mid { max-width: var(--mid); }
.head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px 24px; margin: 0 0 36px; }
.head h1 { margin: 0; }
.head .sub { color: var(--ink2); font-size: 17px; line-height: 1.6; margin: 14px 0 0; max-width: 68ch; text-wrap: pretty; }
.head .act { display: flex; gap: 10px; flex-wrap: wrap; }
.lead { color: var(--ink2); font-size: 16px; line-height: 1.6; margin: 0 0 14px; max-width: 72ch; }
.eyebrow { color: var(--dim); font-size: 12px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; margin: 0 0 14px; }

/* ---- cards: glass on black, a thin line, large round corners */
.card { position: relative; background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 28px; margin: 0 0 20px; }
.card > :last-child { margin-bottom: 0; }
.card .lead { margin-bottom: 12px; }
.narrow, .card.narrow { max-width: var(--narrow); margin-left: auto; margin-right: auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--gap); }
a.card { display: flex; flex-direction: column; gap: 6px; color: var(--ink); text-decoration: none; margin: 0; min-height: 180px; }
a.card:hover { border-color: rgba(232, 238, 248, .35); color: var(--ink); }
a.card .go { margin-top: auto; padding-top: 14px; font-size: 14px; font-weight: 600; color: var(--white); }
a.card.add { border-style: dashed; border-color: var(--line2); background: rgba(10, 13, 20, .35); }
a.card.add:hover { border-color: rgba(232, 238, 248, .4); }
.card .big { font-size: 24px; font-weight: 500; letter-spacing: -.01em; line-height: 1.2; color: var(--white); overflow-wrap: anywhere; }
.hero { padding: 40px 36px 34px; }
.hero h1 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; letter-spacing: -.025em; margin: 0 0 14px; }
.hero .lead { font-size: 16px; margin-bottom: 24px; }
.fail, .card.fail { border-color: var(--bad); }
.card.msg { margin-top: 8vh; }
.card.msg > p:first-child { font-size: 16px; color: var(--white); }

/* ---- chips and badges */
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 1px 9px; border-radius: var(--pill); font-size: 11.5px; font-weight: 600; line-height: 18px; white-space: nowrap; border: 1px solid rgba(232, 238, 248, .7); color: var(--white); vertical-align: middle; }
.chip-role { border-color: var(--line2); color: var(--ink2); font-weight: 500; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 1px 10px; border-radius: var(--pill); font-size: 12px; font-weight: 600; line-height: 20px; white-space: nowrap; border: 1px solid var(--line2); color: var(--ink2); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: var(--pill); background: currentColor; flex: none; }
.badge.found { color: var(--on-white); border-color: var(--white); background: var(--white); }
.badge.notfound { color: var(--ink2); border-color: var(--line2); }
.badge.notfound::before { background: transparent; border: 1px solid currentColor; }
.badge.unsure { color: var(--ink); border-color: rgba(232, 238, 248, .6); border-style: dashed; background: transparent; }

/* ---- buttons: one primary (white pill) per screen; the rest outlined or quiet */
button, .btn { font: inherit; font-family: var(--sans); font-weight: 600; font-size: 14px; line-height: 1.2; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; padding: 9px 18px; border-radius: var(--pill); border: 1px solid var(--line2); background: transparent; color: var(--ink); min-height: 40px; }
button:hover, .btn:hover { border-color: rgba(232, 238, 248, .45); color: var(--white); }
button.primary, .btn.primary { background: var(--white); color: var(--on-white); border-color: var(--white); }
button.primary:hover, .btn.primary:hover { background: #dfe8ff; border-color: #dfe8ff; color: var(--on-white); }
button.quiet, .btn.quiet { border-color: transparent; color: var(--ink2); }
button.quiet:hover, .btn.quiet:hover { color: var(--white); border-color: var(--line2); }
.btn.big, button.big { font-size: 15px; padding: 12px 24px; min-height: 50px; }
button:disabled { opacity: .5; cursor: default; }

/* .busy: on a button or a card while the server works. A small turning ring; still when motion is off. */
.busy { cursor: progress; }
button.busy, .btn.busy { pointer-events: none; opacity: .85; }
button.busy::after, .btn.busy::after { content: ""; width: 12px; height: 12px; border-radius: var(--pill); border: 2px solid currentColor; border-right-color: transparent; animation: turn .8s linear infinite; }
.card.busy::before { content: ""; position: absolute; left: 18px; right: 18px; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--s2), transparent) no-repeat; background-size: 40% 100%; animation: sweep 1.2s ease-in-out infinite; }
@keyframes turn { to { transform: rotate(360deg); } }
@keyframes sweep { from { background-position: -40% 0; } to { background-position: 140% 0; } }
@media (prefers-reduced-motion: reduce) { button.busy::after, .btn.busy::after, .card.busy::before { animation: none; } }

/* ---- forms */
label { display: block; font-size: 14px; font-weight: 600; color: var(--white); margin: 18px 0 8px; }
label.check { display: inline-flex; gap: 10px; align-items: center; margin: 4px 8px 4px 0; font-size: 14px; font-weight: 500; color: var(--ink);
  padding: 9px 14px; border: 1px solid var(--line); border-radius: var(--r-s); cursor: pointer; }
label.check:hover { border-color: var(--line2); }
label.check:has(input:checked) { border-color: rgba(232, 238, 248, .6); background: rgba(232, 238, 248, .05); }
td label.check, .ck-step label.check { padding: 0; border: 0; margin: 0 6px 0 0; background: transparent; }
input[type=text], input[type=url], input[type=email], select { font: inherit; font-family: var(--sans); font-weight: 500; font-size: 15px; width: 100%; min-height: 48px; padding: 10px 16px; color: var(--white);
  background: rgba(0, 0, 0, .5); border: 1px solid var(--line2); border-radius: var(--r-s); }
input::placeholder { color: var(--dim); }
input:focus, select:focus { outline: none; border-color: rgba(232, 238, 248, .55); box-shadow: 0 0 0 3px rgba(143, 184, 255, .18); }
input:has(+ .err:not(:empty)) { border-color: var(--bad); }
select { width: auto; min-height: 40px; padding: 6px 14px; font-size: 14px; }
input[type=checkbox] { accent-color: var(--white); width: 16px; height: 16px; margin: 0; }
.err { color: var(--bad-ink); font-size: 14px; margin: 8px 0 0; }
/* an error that is given focus (tabindex=-1) to be read out shows no ring: it is not a control */
.err[tabindex="-1"]:focus, .err[tabindex="-1"]:focus-visible, .confirm-q:focus, .confirm-q:focus-visible { outline: none; }
.err:empty { margin: 0; }
.hint { color: var(--ink2); font-size: 14px; margin: 8px 0 0; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 14px 0 0; }
.row:first-child { margin-top: 0; }

/* ---- the things looked for on "Add your company": ul.finds > li.find (label, badge, address) */
ul.finds { list-style: none; margin: 18px 0 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r-s); overflow: hidden; }
li.find { display: grid; grid-template-columns: minmax(120px, 170px) 110px minmax(0, 1fr); gap: 8px 14px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(0, 0, 0, .35); }
li.find:last-child { border-bottom: 0; }
li.find > label, li.find > strong, li.find > span:first-child { margin: 0; font-size: 14px; font-weight: 600; color: var(--white); }
li.find > .badge { justify-self: start; }
li.find input { min-height: 42px; padding: 8px 12px; font-size: 14px; }
li.find > input { grid-column: 3; } /* its own column even when a row has no badge (filled in by hand) */
li.find .hint, li.find .err { grid-column: 1 / -1; margin: 0; }
li.find:has(.badge.notfound) input { border-style: dashed; }

/* ---- steps (connect page): a numbered card per step; .now marks the one to do next */
.step { display: inline-grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line2); border-radius: var(--pill); font: 600 13px/1 var(--mono); margin-right: 12px; color: var(--ink); flex: none; }
.card.now { border-color: var(--line2); }
.card.now .step { background: var(--white); color: var(--on-white); border-color: var(--white); }
.card > h2:has(.step) { display: flex; align-items: center; font-size: 20px; margin-bottom: 10px; }
.card.step-card > :not(h2) { margin-left: 40px; }
ol.how { list-style: none; counter-reset: how; margin: 26px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: grid; gap: 14px; }
ol.how li { counter-increment: how; display: grid; grid-template-columns: 28px 1fr; gap: 2px 12px; }
ol.how li::before { content: counter(how); grid-row: span 2; display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line2); border-radius: var(--pill); font: 600 12px/1 var(--mono); }
ol.how b { font-weight: 600; }
ol.how span { color: var(--ink2); font-size: 14px; }

/* ---- code boxes */
pre.code { font: 13px/1.65 var(--mono); background: rgba(0, 0, 0, .55); border: 1px solid var(--line); border-radius: var(--r-s); padding: 16px 18px; margin: 8px 0 12px; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); max-height: 320px; overflow: auto; }
.code-label { color: var(--dim); font-size: 13px; margin: 18px 0 4px; }
pre.code.checkword { display: inline-block; font-size: 22px; font-weight: 500; letter-spacing: .12em; padding: 8px 16px; }
ul.gives { margin: 0 0 12px; padding-left: 20px; color: var(--ink2); }
ul.gives li { margin: 4px 0; }

/* ---- lists and tables */
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--dim); font-size: 12px; font-weight: 600; letter-spacing: .04em; padding: 0 12px 12px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; color: var(--ink2); }
td strong, td b { color: var(--white); }
tbody tr:last-child td { border-bottom: 0; }
tr.off td { color: var(--ink2); font-style: italic; } /* 7:1 on a card */
tr.off td strong { color: var(--ink2); font-weight: 500; }
td .row { margin: 0; flex-wrap: nowrap; }
td select { min-height: 34px; padding: 4px 10px; font-size: 13px; }
td button { min-height: 32px; padding: 4px 12px; font-size: 13px; }

/* Remove, Cancel and Revoke ask first, in the page */
.confirm-slot { display: inline-flex; }
.confirm { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 8px 12px; border: 1px solid var(--bad); border-radius: var(--r-s); background: rgba(255, 180, 168, .06); }
.confirm-q { color: var(--ink); font-size: 14px; font-weight: 500; }
.confirm-acts { display: inline-flex; gap: 8px; }
button.danger { color: var(--bad-ink); border-color: rgba(255, 180, 168, .6); }
button.danger:hover { background: var(--bad); color: var(--on-white); border-color: var(--bad); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: var(--pill); background: transparent; border: 2px solid var(--dim); vertical-align: middle; } /* "Nothing yet": a ring, above 4:1 on a card */
.dot-green { background: var(--good); border-color: var(--good); box-shadow: 0 0 10px rgba(159, 227, 180, .55); }
.dot-red { background: var(--bad); border-color: var(--bad); box-shadow: 0 0 10px rgba(255, 180, 168, .5); }
.tally { display: flex; flex-wrap: wrap; gap: 8px 26px; align-items: center; margin: 0 0 18px; font-size: 14px; color: var(--ink2); }
.tally b { color: var(--white); font-size: 18px; font-weight: 600; margin: 0 6px 0 8px; font-variant-numeric: tabular-nums; }

/* ---- notes and states */
.warn { border: 0; border-left: 2px solid var(--bad); border-radius: 0 10px 10px 0; padding: 12px 16px; background: rgba(255, 180, 168, .06); color: var(--ink); margin: 14px 0 0; }
.note { border-left: 2px solid var(--line2); border-radius: 0 10px 10px 0; padding: 12px 16px; background: rgba(232, 238, 248, .04); color: var(--ink2); margin: 14px 0 0; }
.next { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; justify-content: space-between; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--glass); margin: 0 0 24px; }
.next p { margin: 0; }
.next > p:first-child { color: var(--white); }
.next.bad { border-color: var(--bad); }
.empty { border: 1px dashed var(--line2); border-radius: var(--r); padding: 26px 24px; text-align: center; color: var(--ink2); }
.empty p { margin: 0 0 8px; }
/* "Your companies": the deleted companies an owner can still restore (0021), under the cards */
.gone { margin: 36px 0 0; }
.gone-list { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--line); }
.gone-row { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); }
.gone-row > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.gone-row b { color: var(--white); font-weight: 500; overflow-wrap: anywhere; }
.note + .grid { margin-top: 20px; }
.empty > :last-child { margin-bottom: 0; }
details { margin-top: 12px; }
summary { cursor: pointer; color: var(--ink2); font-size: 14px; font-weight: 600; }
summary:hover { color: var(--white); }
details[open] > summary { margin-bottom: 8px; }

/* ---- footer and the legal pages */
.foot { max-width: none; margin: 100px 0 0; padding: 48px 32px 56px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; }
.foot p { margin: 0 0 6px; max-width: 90ch; }
.foot a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.foot a:hover { color: var(--white); text-decoration: underline; }
/* ---- front page (signed out, /): sign-in first, how it works, what you get. Words only, no image or file.
   .home keeps the footer below the first screen, so it does not jump when the page is drawn. */
.home { min-height: calc(100vh - 57px); }
.home ~ .foot a { display: inline-block; padding: 12px 0; }
.land-hero { position: relative; max-width: 760px; margin: 24px auto 96px; padding: 0; background: none; border: 0; }
.land-hero h1 { font-size: clamp(38px, 5vw, 60px); line-height: 1.05; letter-spacing: -.03em; max-width: 18ch; margin: 0 0 22px; }
.land-hero .lead { font-size: 18px; max-width: 60ch; margin-bottom: 36px; }
.land-hero .warn { max-width: 60ch; }
.land-act { display: flex; flex-direction: column; align-items: stretch; gap: 14px; padding: 28px; border: 1px solid var(--line); border-radius: var(--r); background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.land-act .btn.primary { width: 100%; min-height: 54px; font-size: 16px; }
.land-act .btn.quiet { align-self: flex-start; padding: 6px 0; min-height: 0; font-size: 14px; font-weight: 500; color: var(--ink2); text-decoration: underline; text-underline-offset: 3px; border: 0; }
.land-act .btn.quiet:hover { color: var(--white); }
.land-sec { max-width: var(--max); margin: 0 auto 72px; }
.land-sec > h2 { font-size: 12px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--dim); margin: 0 0 20px; }
ol.land-steps, ul.land-gets { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
ol.land-steps { counter-reset: step; grid-template-columns: repeat(3, minmax(0, 1fr)); }
ol.land-steps li, ul.land-gets li { margin: 0; border: 0; border-radius: 0; background: rgba(6, 8, 13, .92); }
ol.land-steps li { counter-increment: step; display: flex; flex-direction: column; gap: 8px; }
ol.land-steps li::before { content: counter(step); display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: 10px; border: 1px solid var(--line2); border-radius: var(--pill); font: 600 13px/1 var(--mono); }
ol.land-steps b, ul.land-gets h3 { font-size: 17px; font-weight: 600; }
ol.land-steps span, ul.land-gets p { color: var(--ink2); }
ul.land-gets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
ul.land-gets p { margin: 0; }
.land-proof { margin: 20px 0 0; padding: 12px 16px; color: var(--ink2); border: 0; border-left: 2px solid var(--line2); border-radius: 0 10px 10px 0; background: rgba(232, 238, 248, .04); }
@media (max-width: 760px) {
  ol.land-steps, ul.land-gets { grid-template-columns: minmax(0, 1fr); }
  .land-hero { margin-bottom: 64px; }
}
@media (max-width: 640px) {
  .land-hero { margin: 8px auto 48px; }
  .land-hero h1 { font-size: 34px; }
  .land-hero .lead { font-size: 16px; margin-bottom: 26px; }
  .land-act { padding: 20px; }
  .land-act .btn { width: 100%; }
  .land-sec { margin-bottom: 48px; }
}
.legal { padding: 32px 36px; }
.legal h2 { margin-top: 28px; font-size: 13px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--dim); }
.legal p, .legal li { max-width: 70ch; font-size: 16px; line-height: 1.7; color: var(--ink); }

/* ---- phone width (390 px and up) */
@media (max-width: 640px) {
  .wrap { padding: 36px 18px 48px; }
  #top nav { padding: 8px 16px; gap: 6px 10px; min-height: 0; }
  #top .brand { min-height: 44px; padding: 0; margin: 0; } /* the bar is as tall signed out as the room kept for it, so the page does not jump */
  #top .brand { font-size: 12px; letter-spacing: .22em; }
  #top:empty { min-height: 61px; }
  body.app #top:empty, body.tabs #top:empty { min-height: 115px; } /* a company's pages: the tabs take a second line */
  #top .tabs { order: 9; flex: 1 0 100%; margin: 2px 0 0; overflow-x: auto; scrollbar-width: none; }
  #top a.tab { flex: 1 0 auto; text-align: center; padding: 7px 9px; font-size: 13px; }
  #top .co { max-width: 14ch; }
  h1 { font-size: 34px; }
  .head { margin-bottom: 24px; }
  .head .sub { font-size: 16px; }
  .card { padding: 20px; border-radius: 16px; }
  .hero { padding: 26px 20px 22px; }
  .hero h1 { font-size: 28px; }
  .hero .btn.big { width: 100%; }
  .card.msg { margin-top: 4vh; }
  .card.step-card > :not(h2) { margin-left: 0; }
  .grid { grid-template-columns: 1fr; gap: 12px; }
  a.card { min-height: 0; }
  li.find { grid-template-columns: minmax(0, 1fr) auto; padding: 10px 12px; }
  li.find input { grid-column: 1 / -1; }
  .next .btn { width: 100%; }
  .legal { padding: 20px 16px; }
  .foot { margin-top: 64px; padding: 36px 18px 44px; }
  /* a table marked .stack becomes one small block per row; each cell says what it is (data-label) */
  table.stack thead { display: none; }
  table.stack, table.stack tbody, table.stack td { display: block; width: 100%; }
  table.stack tr { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 3px 8px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  table.stack tbody tr:last-child { border-bottom: 0; }
  table.stack td { border: 0; padding: 0; grid-column: 2; }
  table.stack td.lead-cell { grid-column: 1; grid-row: 1 / span 3; padding-top: 4px; }
  table.stack td.num-cell { display: none; }
  table.stack td[data-label]:not(:empty)::before { content: attr(data-label) ": "; color: var(--dim); font-size: 12px; }
  /* .list: a plain list of rows with no dot column (settings) */
  table.stack.list tr { grid-template-columns: minmax(0, 1fr); }
  table.stack.list td { grid-column: 1; }
  table.stack.list td:first-child { font-weight: 600; }
  table.stack.list td:first-child::before { content: none; }
  table.stack.list td .row { margin-top: 6px; }

  /* Every control a finger presses is at least 44 px high (the tick box 44 by 44) */
  html { scroll-padding-top: 120px; }
  button, .btn, td button, #top button, select, td select, li.find input,
  input[type=text], input[type=url], input[type=email] { min-height: 44px; }
  #top a.tab { min-height: 44px; display: inline-flex; align-items: center; }
  label.check { min-height: 44px; }
  td label.check, .ck-step label.check { min-width: 44px; min-height: 44px; justify-content: center; margin: -10px 4px -10px -12px; }
  input[type=checkbox] { width: 20px; height: 20px; }
  .confirm { display: flex; width: 100%; }
}

/* Reports (members of one company only) */
.card.report { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.card.report h2 { margin: 0 0 4px; font-size: 20px; }
.card.report p { margin: 0; }
.report-view { margin-top: 24px; }
.report-view:focus { outline: none; }
.report-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.report-head h2 { margin: 0; }
.report-frame { display: block; width: 100%; height: 80vh; min-height: 420px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.report-text { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 80vh; overflow: auto; background: rgba(0, 0, 0, .55); border: 1px solid var(--line); border-radius: var(--r-s); padding: 16px 18px; font-family: var(--mono); font-size: 0.92rem; line-height: 1.55; margin: 0; }

/* ---- Motion ----
   Quiet and short: transform and opacity only, 150 to 300 ms, one curve (--ease), each thing once.
   Everything that moves sits in the block below, so with "reduce motion" on every page shows at rest, at once.
   Nothing here reserves or changes room: an element that comes in already stands where it will stay. */
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes tick { from { opacity: 0; transform: scale(.4); } }
@keyframes said { from { opacity: .35; } }

@media (prefers-reduced-motion: no-preference) {
  /* page entry: each page fills #main one time, so its parts come in once and a later re-draw inside them does not move */
  #main > *, #main > .mid > * { animation: rise 240ms var(--ease) both; }
  #main > .mid, #main > p.muted:only-child { animation: none; }
  #main > :nth-child(2), #main > .mid > :nth-child(2) { animation-delay: 40ms; }
  #main > :nth-child(3), #main > .mid > :nth-child(3) { animation-delay: 80ms; }
  #main > :nth-child(4), #main > .mid > :nth-child(4) { animation-delay: 120ms; }
  #main > :nth-child(n+5), #main > .mid > :nth-child(n+5) { animation-delay: 160ms; }
  .grid > a.card { animation: rise 240ms var(--ease) both; }
  .grid > a.card:nth-child(2) { animation-delay: 40ms; }
  .grid > a.card:nth-child(3) { animation-delay: 80ms; }
  .grid > a.card:nth-child(n+4) { animation-delay: 120ms; }

  /* hover and pressed: a control answers the finger at once and settles in 150 ms */
  button, .btn, a.card, #top a.tab, label.check, input[type=checkbox] { transition: transform 150ms var(--ease), opacity 150ms var(--ease); }
  button:active:not(:disabled), .btn:active { transform: scale(.97); }
  a.card:hover { transform: translateY(-2px); }
  a.card:active { transform: translateY(0) scale(.99); }
  #top a.tab:active { opacity: .65; }
  input[type=checkbox]:active:not(:disabled) { transform: scale(.88); }

  /* things that appear because of a press: the question before Remove, Cancel or Revoke; an error; a key or command */
  .confirm { animation: fade 150ms var(--ease) both; }
  .err { animation: fade 200ms var(--ease) both; }
  pre.code { animation: fade 200ms var(--ease) both; }
  button.copied { animation: said 240ms var(--ease) both; } /* "Copied" (site.mjs copyButton) */
  .dot.now { animation: tick 240ms var(--ease) both; }
  .ck-step.now .ck-mark { animation: tick 240ms var(--ease) both; } /* a checklist step whose state just changed (checklist.mjs) */      /* a checklist row whose state just changed (checklist.mjs) */
  #field { transition: opacity 300ms var(--ease); }        /* the dust field comes in once it has drawn (field.mjs) */
}

/* checklist: the setup as steps, joined by a line that turns green as each step arrives */
ol.ck-steps { list-style: none; margin: 0; padding: 0; }
.ck-step { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 18px; position: relative; padding-bottom: 24px; }
.ck-step:not(:last-child)::before { content: ''; position: absolute; left: 13px; top: 32px; bottom: 4px; width: 2px; border-radius: 2px; background: var(--base); }
.ck-step.ck-green:not(:last-child)::before { background: var(--good); opacity: .45; }
.ck-mark { width: 28px; height: 28px; display: grid; place-items: center; border-radius: var(--pill); border: 1.5px solid var(--base); }
.ck-green .ck-mark { border-color: var(--good); background: rgba(63, 185, 107, .14); }
.ck-red .ck-mark { border-color: var(--bad); background: rgba(229, 72, 77, .14); }
.ck-mark .dot { display: none; } /* the mark says it instead: a tick, a !, or the step number */
.ck-mark::after { font-size: 13px; font-weight: 700; line-height: 1; }
.ck-green .ck-mark::after { content: '✓'; color: var(--good); }
.ck-red .ck-mark::after { content: '!'; color: var(--bad); }
.ck-n { display: none; font-size: 11px; font-weight: 650; color: var(--ink2); }
.ck-grey .ck-n { display: block; }
.ck-top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; min-height: 28px; }
.ck-top strong { font-size: 16px; font-weight: 650; }
.ck-grey .ck-top strong { color: var(--ink2); }
.ck-when { margin-left: auto; }
.ck-detail { margin: 2px 0 0; color: var(--ink2); }
.ck-step .source { margin: 2px 0 0; }
.ck-step label.check { margin-top: 8px; }
button.ck-toggle { padding: 4px 12px; font-size: 13px; }
.ck-help { margin-top: 12px; padding: 18px 20px; border: 1px solid var(--base); border-radius: var(--r); background: var(--raise); }
.ck-help p { margin: 0 0 8px; }
.ck-help .ck-h { margin: 16px 0 6px; font-size: 11px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--ink2); }
.ck-help .ck-h:first-child { margin-top: 0; }
.ck-cmd { display: flex; gap: 10px; align-items: center; margin: 0 0 8px; }
.ck-cmd pre { flex: 1; min-width: 0; margin: 0; }
.ck-ways { margin-top: 16px; align-items: center; }
@media (max-width: 640px) {
  .ck-cmd { flex-direction: column; align-items: stretch; }
  .ck-when { margin-left: 0; }
}

/* ---- app pages, sized as in the design (kc.jeun.pen Pages 7-25, 73-82): a smaller page title and line under it,
   the company in the top bar as a plain dot and name, a smaller Sign out. Look only; the front page keeps its own. */
.wrap { padding-top: 48px; }
.head { gap: 10px 24px; margin: 0 0 28px; }
.head h1 { font-size: 34px; line-height: 1.1; }
.head .sub { font-size: 15px; margin: 4px 0 0; max-width: 80ch; }
#top .co { padding: 0; border: 0; border-radius: 0; }
#top button { padding: 5px 12px; font-size: 12.5px; }
