/*
 * FabledOS mockups: the website (first drawn 2026-11-28, redrawn in Monolith on 2026-11-29).
 * Layered on friendly.css, the way apps/www/app/globals.css layers on the product's styles: it adds display type,
 * the page container, sections, the preview frame, the architecture diagram, the header and the footer, as
 * apps/www/DESIGN.md sets them out. It has no colors of its own: every color is a friendly.css variable, so both themes carry over.
 * Used only by the screens whose files start with "Www". The root is .fr.site; the phone adds .narrow.
 */
.fr.site { min-width: 0; }
.site .wrap { width: 100%; max-width: 1152px; margin: 0 auto; padding: 0 24px; }
.site svg.i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }

/* Display type: the same sans at weight 500, tracked tight */
.site .d-xl, .site .d-lg, .site .d-md { font-weight: 500; }
.site .d-xl { font-size: 76px; line-height: 76px; letter-spacing: -0.055em; }
.site .d-lg { font-size: 56px; line-height: 58px; letter-spacing: -0.05em; }
.site .d-md { font-size: 44px; line-height: 46px; letter-spacing: -0.045em; }
.site .lead { color: var(--soft); font-size: 18px; line-height: 28px; }
.site .eyebrow { color: var(--soft); font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; line-height: 20px; letter-spacing: 0.02em; }
.site .copy { color: var(--soft); font-size: 15px; line-height: 22px; }
.site .h3 { font-size: 18px; line-height: 24px; letter-spacing: -0.025em; }
.site .balance { text-wrap: balance; }

/* Header: sticky, the mark home, the section links, and Sign in */
.site .top { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(12px); }
.site .top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; }
.site .top nav { display: flex; gap: 28px; }
.site .top nav a { display: inline-flex; align-items: center; min-height: 24px; color: var(--soft); }
.site .top nav a:hover { color: var(--ink); }
.site .top .brand { font-size: 17px; }
.site .top .btn { min-height: 32px; padding: 0 12px; }

/* The hero: a still texture of dots behind it, faded out toward the edges */
.site .hero { position: relative; padding: 112px 0; text-align: center; overflow: hidden; }
.site .hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(var(--line-strong) 1px, transparent 1px); background-size: 20px 20px; mask-image: radial-gradient(ellipse 70% 60% at 50% 25%, black, transparent); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 25%, black, transparent); pointer-events: none; }
.site .hero .wrap { position: relative; display: flex; flex-direction: column; align-items: center; }
.site .status { display: inline-flex; align-items: center; gap: 8px; }
.site .status::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--soft); }
.site .hero h1 { max-width: 900px; margin-top: 24px; }
.site .hero .lead { max-width: 672px; margin-top: 24px; }
.site .ctas { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 24px; margin-top: 32px; }
.site .ctas .btn { min-height: 40px; padding: 0 16px; }
.site a.down { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; color: var(--soft); text-decoration: underline; text-underline-offset: 4px; }
.site a.down:hover { color: var(--ink); }
.site .hero .frame { width: 100%; max-width: 1024px; margin-top: 80px; }

/* A section: a hairline, the eyebrow, the headline and the lead, then its content */
.site .sec { padding: 112px 0; border-top: 1px solid var(--line); }
.site .sec .intro { display: flex; flex-direction: column; gap: 12px; max-width: 768px; margin-bottom: 64px; }
.site .sec .intro .lead { max-width: 672px; margin-top: 8px; }
.site .cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 40px; }
.site .cols3 > * { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); }
.site .note-under { max-width: 672px; margin-top: 24px; }

/* The loop: a still diagram, then its seven steps */
.site .diagram { position: relative; display: grid; grid-template-columns: 300px 160px 300px; align-items: center; width: 760px; height: 300px; margin: 0 auto; }
.site .diagram > svg.wires { position: absolute; inset: 0; width: 760px; height: 300px; fill: none; stroke: var(--line-strong); stroke-width: 1; }
.site .diagram ul { position: relative; display: flex; flex-direction: column; justify-content: space-around; height: 100%; }
.site .diagram li { display: flex; align-items: center; gap: 12px; }
.site .diagram .from li { justify-content: flex-end; text-align: right; }
.site .diagram .lbl { display: flex; flex-direction: column; }
.site .diagram li small { color: var(--soft); font-size: 13px; line-height: 18px; }
.site .tile { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.site .hub { position: relative; justify-self: center; display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.site .hub svg { width: 32px; height: 32px; }
.site .legend { display: none; }
.site .steps-list { margin-top: 80px; }
.site .steps-list li { display: grid; grid-template-columns: 40px 144px minmax(0, 1fr) minmax(0, 1fr); gap: 8px 32px; padding: 24px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 22px; }
.site .steps-list .no { color: var(--soft); font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; line-height: 24px; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.site .steps-list .eg { color: var(--soft); }
.site .steps-list .eg b { display: block; margin-bottom: 4px; font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; line-height: 20px; font-weight: 400; letter-spacing: 0.02em; }

/* The frame around every picture of the product: a title bar with the mark, the stage and "Preview", then the picture */
.site .frame { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--card); text-align: left; }
.site .frame .tbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.site .frame .tbar .t { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; line-height: 18px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site .frame .tbar .t svg { width: 16px; height: 16px; flex: none; }
.site .frame .tbar .t .d { margin-left: -4px; }
.site .frame .tbar .tags { display: inline-flex; gap: 6px; flex: none; }
/* A badge: outline for "Preview" and "Later", filled quietly for "Next", inverted for "Now" */
.site .tag { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--soft); font-size: 12px; line-height: 16px; font-weight: 500; white-space: nowrap; }
.site .tag.next { border-color: transparent; background: var(--second); color: var(--ink); }
.site .tag.now { border-color: transparent; background: var(--primary); color: var(--on-primary); }
.site .frame > .frame-in { flex: 1; display: flex; flex-direction: column; }

/* Inside a preview: the product's own type, with each item a box on the page color */
.site .shot { flex: 1; display: flex; flex-direction: column; gap: 16px; padding: 24px; }
.site .shot .hello { font-size: 24px; line-height: 30px; letter-spacing: -0.035em; text-wrap: balance; }
.site .shot .h3 { font-size: 16px; line-height: 24px; letter-spacing: -0.01em; }
.site .shot .note { gap: 8px; }
.site .shot .card { gap: 12px; padding: 16px; border-radius: 6px; background: var(--bg); }
.site .shot .letter { background: transparent; }
.site .shot .btn { min-height: 32px; padding: 0 12px; }
.site .shot .fig, .site .shot .pic { padding: 12px; border-radius: 6px; background: var(--bg); }
.site .shot .lines .who { flex-basis: 144px; }
.site .shot .lines .say { flex-basis: 220px; }
.site .shot .steps { gap: 12px; }
.site .shot .fold > summary { padding: 12px 0; }
.site .shot .ask input { height: 28px; }
.site .shot .send { width: 28px; height: 28px; }
.site .shot .fact { padding: 10px 0; grid-template-columns: minmax(96px, 140px) minmax(0, 1fr); }
.site .shot .group { gap: 8px; }

/* A lock screen inside a preview: the date, the time and the notifications, in the page's own theme */
.site .shot.lockshot { align-items: center; justify-content: center; padding: 32px 16px; }
.site .lockpic { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 384px; }
.site .lockpic .date { color: var(--soft); font-size: 13px; line-height: 18px; text-align: center; }
.site .lockpic .clock { margin-bottom: 16px; font-size: 56px; line-height: 56px; font-weight: 500; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; text-align: center; }
.site .lockpic .push { display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.site .lockpic .push strong { font-weight: 500; }
.site .lockpic .from { display: flex; align-items: center; gap: 6px; font-size: 13px; line-height: 18px; font-weight: 500; }
.site .lockpic .from .when { color: var(--soft); font-weight: 400; }
.site .lockpic .from .when.warn { color: var(--warning); }
.site .lockpic .btn { min-height: 24px; margin-top: 4px; padding: 0 8px; font-size: 12px; line-height: 16px; }

/* Two previews side by side, each with the claim it shows under it. The previews end level. */
.site .pair2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 1fr auto; grid-auto-flow: column; gap: 24px; }
.site .pair2 + .pair2 { margin-top: 80px; }
.site .cap { display: flex; flex-direction: column; gap: 8px; }

/* The example switch above the business map: the one working control on the page. A segmented control, like the theme switch. */
.site .switch { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 16px; }
.site .switch .eyebrow { font-family: inherit; letter-spacing: 0; line-height: 18px; }
.site .switch .seg, .site .themes { display: inline-flex; gap: 2px; height: 34px; padding: 2px; border: 1px solid var(--line-strong); border-radius: 8px; }
.site .switch .seg button, .site .themes button { display: inline-flex; align-items: center; justify-content: center; height: 28px; border: 0; border-radius: 6px; background: transparent; color: var(--soft); font-weight: 500; cursor: pointer; }
.site .switch .seg button { padding: 0 12px; }
.site .themes button { width: 28px; }
.site .switch .seg button:hover, .site .themes button:hover { color: var(--ink); }
.site .switch .seg button[aria-pressed="true"], .site .themes button[aria-pressed="true"] { background: var(--tint); color: var(--ink); }
.site .stack { display: grid; }
.site .stack > .ex { grid-area: 1 / 1; }
.site .stack > .ex.off { visibility: hidden; }

/* Principles */
.site .cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.site .cards .card { gap: 16px; }
.site .cards .card .h3 { font-size: 16px; line-height: 24px; letter-spacing: -0.01em; }
.site .cards .card .copy { font-size: 14px; line-height: 20px; }
.site .cards .icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 6px; background: var(--tint); }

/* Text for screen readers only: the stage each part of the architecture diagram carries */
.site .vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* A row of three under a preview, and four cards in a row */
.site .cols3.below { margin-top: 80px; }
.site .cards.cards4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* A preview with its two claims beside it */
.site .beside { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 48px; align-items: start; }
.site .caps { display: flex; flex-direction: column; gap: 32px; }
.site .caps .cap { gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); }

/* The architecture diagram: six bands, from where you work down to your tools. Real text, no picture.
   A part's stage is its outline: Now is filled in the ink, Next has a solid outline, Later a dashed one. */
.site .arch { display: flex; flex-direction: column; gap: 24px; }
.site .arch-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 32px; font-size: 13px; line-height: 18px; }
.site .arch-key { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; color: var(--soft); font-size: 13px; line-height: 18px; }
.site .arch-key li { display: inline-flex; align-items: center; gap: 8px; }
.site .bands { display: flex; flex-direction: column; }
.site .band { display: grid; grid-template-columns: 240px minmax(0, 1fr); align-items: center; gap: 16px 40px; padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.site .band-head { display: flex; flex-direction: column; gap: 4px; }
.site .band-head .copy { font-size: 13px; line-height: 18px; }
.site .band-groups { display: flex; flex-wrap: wrap; gap: 12px; }
.site .band-group { display: flex; flex-direction: column; gap: 12px; }
.site .gname { font-size: 13px; line-height: 18px; font-weight: 500; }
.site .parts { display: flex; flex-wrap: wrap; gap: 8px; }
.site .pt { position: relative; display: inline-flex; align-items: center; min-height: 28px; padding: 2px 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--bg); font-weight: 500; }
.site .pt-now { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.site .pt-later { border-style: dashed; border-color: var(--input); background: transparent; color: var(--soft); }
.site .arch-key .pt { min-height: 20px; padding: 0 8px; font-size: 12px; line-height: 16px; }
/* The layer is what everything else serves, so its edge is the ink */
.site .band-core { border-color: var(--ink); }
.site .band-core .band-group { flex: 1 1 280px; padding: 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); }
.site .flow-line { display: grid; grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr); align-items: center; gap: 0 12px; height: 28px; color: var(--soft); font-size: 12px; line-height: 16px; }
.site .flow-line .up { text-align: right; }
.site .flow-line .stem { align-self: stretch; background: var(--line-strong); }
.site .arch + .cols3 { margin-top: 80px; }

/* The closing section */
.site .closing { padding: 128px 0; border-top: 1px solid var(--line); text-align: center; }
.site .closing .wrap { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.site .closing .lead { max-width: 560px; }
.site .closing .ctas { margin-top: 12px; }

/* Footer: the copyright line and the legal links, and the theme switch */
.site .foot { border-top: 1px solid var(--line); }
.site .foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 16px; padding-bottom: 16px; }
.site .foot .legal-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; color: var(--soft); font-size: 13px; line-height: 18px; }
.site .foot .legal-links a { text-decoration: underline; text-underline-offset: 4px; }
.site .foot .legal-links a:hover { color: var(--ink); }

/* The legal pages: one column of text */
.site .legal { flex: 1; padding: 80px 0 112px; }
.site .legal article { display: flex; flex-direction: column; gap: 12px; max-width: 600px; color: var(--soft); font-size: 15px; line-height: 22px; }
.site .legal header { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.site .legal h1, .site .legal h2, .site .legal b { color: var(--ink); }
.site .legal h2 { margin-top: 28px; }
.site .legal b { font-weight: 500; }
.site .legal ul { display: flex; flex-direction: column; gap: 8px; padding-left: 20px; list-style: disc; }
.site .legal a { text-decoration: underline; text-underline-offset: 4px; }
.site .legal a:hover { color: var(--ink); }
.site .legal .placeholder { padding: 1px 6px; border: 1px dashed var(--input); border-radius: 4px; color: var(--ink); }

/* Not found */
.site .lost { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 96px 24px; text-align: center; }
.site .lost .btn { margin-top: 12px; }

/* ------------------------------------------------------------------ The phone: the same page at 390 wide */
.fr.site.narrow .pane { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; }
.site.narrow .top nav { display: none; }
.site.narrow .d-xl { font-size: 32px; line-height: 36px; letter-spacing: -0.04em; }
.site.narrow .d-lg { font-size: 32px; line-height: 36px; letter-spacing: -0.04em; }
.site.narrow .d-md { font-size: 32px; line-height: 36px; letter-spacing: -0.04em; }
.site.narrow .hero { padding: 80px 0; }
.site.narrow .hero .frame { margin-top: 56px; }
.site.narrow .sec { padding: 80px 0; }
.site.narrow .sec .intro { margin-bottom: 48px; }
.site.narrow .cols3, .site.narrow .cards { grid-template-columns: minmax(0, 1fr); }
.site.narrow .pair2 { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; gap: 16px; }
.site.narrow .pair2 .cap { margin-bottom: 24px; }
.site.narrow .pair2 + .pair2 { margin-top: 32px; }
.site.narrow .diagram { grid-template-columns: 1fr auto 1fr; width: 100%; height: 260px; }
.site.narrow .diagram > svg.wires, .site.narrow .diagram .lbl { display: none; }
.site.narrow .diagram .from li, .site.narrow .diagram .to li { justify-content: center; }
.site.narrow .hub { width: 56px; height: 56px; }
.site.narrow .legend { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; font-size: 13px; line-height: 18px; }
.site.narrow .legend div { display: flex; flex-direction: column; gap: 6px; }
.site.narrow .legend .k { color: var(--soft); }
.site.narrow .steps-list { margin-top: 64px; }
.site.narrow .steps-list li { grid-template-columns: 40px minmax(0, 1fr); }
.site.narrow .steps-list li > p { grid-column: 2; }
.site.narrow .frame .tbar .d { display: none; }
.site.narrow .shot { padding: 16px; }
.site.narrow .shot .card { padding: 12px; }
.site.narrow .shot .figs { grid-template-columns: minmax(0, 1fr); }
.site.narrow .shot .lines .who { flex-basis: 100%; }
.site.narrow .switch .seg button { padding: 0 10px; font-size: 12px; line-height: 16px; }
.site.narrow .cards.cards4 { grid-template-columns: minmax(0, 1fr); }
.site.narrow .cols3.below, .site.narrow .arch + .cols3 { margin-top: 56px; }
.site.narrow .beside { grid-template-columns: minmax(0, 1fr); }
.site.narrow .caps { gap: 24px; }
.site.narrow .band { grid-template-columns: minmax(0, 1fr); padding: 16px; }
.site.narrow .band-core .band-group { flex-basis: 100%; }
.site.narrow .closing { padding: 96px 0; }
.site.narrow .legal { padding: 64px 0 80px; }
