/* colla.studio, direction ข: the paper scrap (design's Landing-B and its pages, canvas/project/).
   The pages' layout and look are atomic classes in atomic.css, converted from the boards' inline
   styles, since the CSP allows no inline style. This file holds the base, in a layer so those classes
   always win over it as the boards' inline styles did, and the parts the scripts build: buttons, the
   account chip, the member panel, the FAQ and the months table. */

@layer base {
  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; }
  body { margin: 0; background: #f4efe3; color: #1b1916; font-family: var(--font-sans); }
  a { color: #1b1916; }
  a:hover { color: #4a453c; }
  button { font: inherit; color: inherit; }
  /* A hidden element stays hidden whatever display class it carries. */
  [hidden] { display: none !important; }
  :focus-visible { outline: 3px solid #e2452a; outline-offset: 3px; }
  .skip { position: absolute; left: 16px; top: -60px; z-index: 10; padding: 10px 16px; background: #1b1916; color: #f4efe3; }
  .skip:focus { top: 12px; color: #f4efe3; }
}

/* The page: cream paper with a faint grain. */
.paper {
  min-height: 100vh;
  background-color: #f4efe3;
  background-image: radial-gradient(circle at 1px 1px, rgba(27, 25, 22, 0.05) 1px, transparent 0);
  background-size: 6px 6px;
  color: #1b1916;
  font-family: var(--font-sans);
  overflow-x: hidden;
}

/* colla, drawn by scrap.js into each .scrap: white paper lifted a little off the page. */
.scrap { display: block; }
.scrap-svg { display: block; overflow: visible; filter: drop-shadow(0 3px 5px rgba(27, 25, 22, 0.2)); }

/* The nav: the page being shown has a lime marker behind its word. */
.ws-links a { color: #1b1916; text-decoration: none; }
.ws-links a[aria-current="page"] { box-shadow: inset 0 -0.45em 0 #c8f24b; }
.ws-account { display: inline-flex; align-items: center; gap: 16px; font-size: 14px; }
.ws-account-email { display: inline-flex; align-items: center; padding: 6px 12px; background: #ffffff; font-family: var(--font-mono); font-size: 13px; }
.ws-textlink { color: #1b1916; font-size: 15px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }

/* Buttons, written by site.js and member.js: dark paper cut a little crooked, or a ruled light one. */
.ws-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px;
  border: 0;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.ws-btn-primary { background: #1b1916; color: #f4efe3; clip-path: polygon(1% 8%, 99% 0, 100% 92%, 0 100%); }
.ws-btn-primary:hover { color: #f4efe3; background: #2b2926; }
.ws-btn-secondary { border: 2px solid #1b1916; background: #fffdf7; color: #1b1916; }
.ws-btn-secondary:hover { color: #1b1916; background: #ffffff; }
.ws-btn-sm { min-height: 46px; padding: 0 24px; font-size: 15px; clip-path: polygon(2% 8%, 98% 0, 100% 90%, 1% 100%); }
.ws-btn-secondary.ws-btn-sm { clip-path: none; }
.ws-btn-off, .ws-btn-off:hover { opacity: 0.55; cursor: default; background: #1b1916; }
.ws-btn-secondary.ws-btn-off { background: #fffdf7; }
.ws-mono { font-family: var(--font-mono); }
.ws-note { margin: 0; font-size: 15px; line-height: 1.7; color: #4a453c; }
.ws-center { text-align: center; }

/* A pay or download link that is not on yet: site.js leaves it without an href. */
a[aria-disabled="true"], a[aria-disabled="true"]:hover { opacity: 0.55; cursor: default; }

/* Parts that follow the config: the launch price and seats, and the monthly plan. */
[data-launch="off"] .if-launch, [data-monthly="hidden"] .if-monthly { display: none !important; }

/* The FAQ: one answer open at a time (details with a shared name), + and − in the hand. */
.faq > summary { list-style: none; }
.faq > summary::-webkit-details-marker { display: none; }
.faq-sign::before { content: "+"; }
.faq[open] .faq-sign::before { content: "−"; }

/* Pricing's months table: what monthly adds up to, each total past lifetime underlined. */
.compare tbody th { padding: 6px 8px 6px 0; text-align: left; font-weight: 600; }
.compare tbody td { padding: 6px 8px; text-align: right; font-family: var(--font-mono); }
.compare tbody td:last-child { padding: 6px 0 6px 8px; }
.compare td.over { box-shadow: inset 0 -3px 0 #e2452a; }

/* Pricing's sweep: the blurred 480p half and the line, where sweep.js starts them. */
.sweep-blur { clip-path: inset(0 70% 0 0); }
.sweep-line { left: 30%; }

/* The member page (member.js): one signed-out card at a time, and the parts it writes. */
.wm-narrow { max-width: 480px; margin: 0 auto; padding: clamp(72px, 9vw, 112px) clamp(16px, 4vw, 24px) clamp(64px, 8vw, 104px); }
.wm-captcha { padding-top: 0; padding-bottom: 0; }
.wm-k { margin: 0; font-size: 13px; line-height: 1.6; color: #4a453c; }
.wm-error { margin: 0; padding: 10px 14px; background: #fde4dc; color: #8a2414; font-size: 14px; line-height: 1.6; }
.wm-link { padding: 0; border: 0; background: none; color: #1b1916; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.wm-link:disabled { opacity: 0.55; cursor: default; }
.wm-device-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.wm-device-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 10px 12px; background: #f4efe3; font-size: 14px; }
.wm-device-list li span { flex: 1; }

/* The legal pages: long text on a ruled sheet, and the note that they are drafts. */
.legal { max-width: 820px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 24px) clamp(64px, 8vw, 104px); }
.legal-sheet { padding: clamp(24px, 4vw, 48px) clamp(20px, 4vw, 48px); background: #fffdf7; box-shadow: 0 12px 28px rgba(27, 25, 22, 0.14); }
.legal-sheet h2 { margin: 36px 0 10px; font-size: 21px; line-height: 1.5; font-weight: 700; }
.legal-sheet h2:first-of-type { margin-top: 8px; }
.legal-sheet p, .legal-sheet li { margin: 0 0 10px; font-size: 16px; line-height: 1.8; color: #3b3830; }
.legal-sheet ul { margin: 0 0 10px; padding-left: 22px; }
.legal-draft { margin: 0 0 24px; padding: 14px 16px; border: 2px dashed #e2452a; background: #fff3ef; font-size: 15px; line-height: 1.7; font-weight: 600; }
