/* firebirdai.io, the holding page. The ceramic system of apps/demo/DESIGN.md ("Ceramic", 2 October 2026), by hand and
   static: bare ceramic lit from the top left, and the mark pressed into it large, as in the opening
   (public/storyboard/splash.html). The disclosures sit below the first screen as rows of small print. No orange.
   Nunito Sans carries everything. */

:root {
  --ground: radial-gradient(130% 85% at 0% 0%, #FAFAFC 0%, #F5F4F8 40%, #EEEDF3 100%);
  --ink: #1D2324;
  --ink-2: #4A4F53;
  --muted: #6B6F72;
  --faint: #8A8F93;
  --hair: rgb(120 110 150 / 0.12);
  --font: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --page-x: clamp(22px, 5.5vw, 80px);
  /* The mark's weight is in the wings, so centred by its box it looks high; it drops by 5% of its height. */
  --mark: min(64vmin, 560px);
  --mark-drop: calc(var(--mark) * 0.05);
}

* { box-sizing: border-box; }
html { background: #F5F4F8; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--ground) fixed;
  font-family: var(--font);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink-2); outline-offset: 4px; border-radius: 4px; }
::selection { background: #CBBDFA; color: var(--ink); }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* The first screen: bare ceramic, the mark in the middle, one line of small print at the foot. */
.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 0 var(--page-x);
}
.mark {
  display: block;
  width: var(--mark);
  height: var(--mark);
  overflow: visible;
  translate: 0 var(--mark-drop);
}
/* With the script running, the mark starts flush (invisible) and is pressed in; site.js lifts this. */
.js .mark { visibility: hidden; }
.js .mark.ready { visibility: visible; }

.line {
  position: absolute;
  left: var(--page-x);
  right: var(--page-x);
  bottom: max(26px, env(safe-area-inset-bottom));
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 0;
}
.line a { color: var(--muted); text-decoration: none; }
.line a:hover { color: var(--ink); }
.sep { margin: 0 8px; color: var(--faint); }

/* Below the fold: the disclosures as small print on hairlines. Text left-aligned. */
.fine {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(28px, 4vw, 64px);
  padding: 36px var(--page-x) 48px;
  border-top: 1px solid var(--hair);
}
.col { padding: 0 0 18px; }
.fine h2 { margin: 0 0 10px; color: var(--ink-2); font-size: 13px; font-weight: 700; }
.fine p { margin: 0 0 10px; max-width: 58ch; color: var(--muted); font-size: 13px; line-height: 1.58; }
.fine a { color: var(--ink-2); }
.fine strong { color: var(--ink-2); font-weight: 700; }
.fine .copy { grid-column: 1 / -1; max-width: none; margin: 18px 0 0; padding-top: 18px; border-top: 1px solid var(--hair); color: var(--faint); }

/* The opening: the line arrives after the mark has pressed in. */
.js .line { opacity: 0; transition: opacity 1400ms cubic-bezier(.4, 0, .12, 1); }
.js .line.ready { opacity: 1; }

@media (max-width: 860px) {
  .fine { grid-template-columns: 1fr; }
  .col { padding: 18px 0; border-bottom: 1px solid var(--hair); }
  .col:first-child { padding-top: 0; }
  .fine .copy { border-top: 0; padding-top: 0; }
  :root { --mark: min(86vw, 58vh); }
}

/* On a phone the line keeps to one row; the address is in the small print below. */
@media (max-width: 520px) {
  .line .mail, .line .mail-sep { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .line { transition: none; }
}

/* /terms: the mark engraved at the top left, as on every Firebird screen; the text as rows on the ceramic. */
.corner { padding: 22px var(--page-x) 0; }
.corner a { display: inline-block; border-radius: 12px; }
.corner-mark { display: block; width: 58px; height: 58px; margin-left: -8px; }
.doc { max-width: calc(68ch + 2 * var(--page-x)); padding: clamp(28px, 7vh, 72px) var(--page-x) 56px; }
.doc h1 { margin: 0 0 28px; font-size: clamp(30px, 4vw, 40px); line-height: 1.08; font-weight: 700; letter-spacing: -0.025em; }
.doc section { padding: 24px 0 14px; border-top: 1px solid var(--hair); }
.doc h2 { margin: 0 0 12px; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.doc h3 { margin: 18px 0 6px; color: var(--ink-2); font-size: 15px; font-weight: 700; }
.doc p { margin: 0 0 12px; color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.doc a { color: var(--ink); }
.doc strong { color: var(--ink); }
.doc .copy { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--hair); color: var(--faint); font-size: 13px; }
