/* Inter and JetBrains Mono are self-hosted (SIL Open Font License), so the app asks the network for nothing. Aeonik, the brand
   face, is licensed and is used when it is installed; otherwise Inter, as the brand guidelines say. */
@font-face { font-family: "Inter"; src: url("fonts/inter.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap; }

/* Tokens and type scale copied from madison-landing-private (app/globals.css and app/embed/embed.css): the Lyzr-themed embed.
   Navy #043E77, orange #FE4B1E, warm greys, Aeonik, 4px corners, no card shadows. Swap this file and index.html for the refined UI. */


:root {
  --page: #ffffff; --canvas: #ffffff; --surface: #f1f0ee; --sunk: #f1f0ee;
  --ink: #1f2022; --ink-2: #6b675f; --ink-3: #77736b;
  --navy: #043e77; --navy-deep: #032e59; --navy-hover: #0a4f94; --navy-wash: #eef3f9; --navy-soft: #a7bfd8;
  --brass: #a8a298; --brass-deep: #593d3d; --brass-wash: #f5f3f0;
  --stamp: #b8390f; --stamp-wash: #fdf0eb;
  --line: #e3e1de; --line-2: #cfccc7; --line-3: #b8b4ad;
  --on-navy: #ffffff; --on-navy-2: rgb(255 255 255 / .7); --on-navy-line: rgb(255 255 255 / .16);
  --r: 4px;
  --sans: "Aeonik", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --citation: "Martian Mono", "Geist Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; min-width: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--page); }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 1rem/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, ul, ol, dl, dd, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
fieldset { border: 0; margin: 0; padding: 0; }
legend { padding: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tabular { font-variant-numeric: tabular-nums; }

.embed { max-width: 50rem; margin: 0 auto; padding: 22px 18px; }
@media (min-width: 30rem) { .embed { padding: 32px; } }

/* type scale */
.type-title { font-size: clamp(24px, 5vw, 30px); line-height: 1.12; letter-spacing: -.017em; font-weight: 500; text-wrap: balance; }
.type-title-sm { font-size: clamp(21px, 4vw, 26px); line-height: 1.14; letter-spacing: -.016em; font-weight: 500; text-wrap: balance; }
.type-subtitle { font-size: clamp(1.125rem, 1.9vw, 1.375rem); line-height: 1.2; letter-spacing: -.013em; font-weight: 500; }
.type-statement { font-size: clamp(1.25rem, 2.5vw, 1.75rem); line-height: 1.2; letter-spacing: -.016em; font-weight: 500; text-wrap: balance; }
.type-lead { font-size: 1.0625rem; line-height: 1.62; color: var(--ink-2); text-wrap: pretty; }
.type-body { font-size: .9375rem; line-height: 1.64; color: var(--ink-2); text-wrap: pretty; }
.type-small { font-size: .8125rem; line-height: 1.58; color: var(--ink-2); }
.type-label { font-size: 13.5px; line-height: 1.6; font-weight: 500; }  /* the embed's sentence-case label */
.type-cite { font-family: var(--mono); font-size: .75rem; line-height: 1.5; font-variant-numeric: tabular-nums; }
.type-figure { letter-spacing: -.016em; font-weight: 500; font-variant-numeric: tabular-nums; }
.type-figure-xl { font-size: clamp(3.5rem, 8vw, 6rem); line-height: .9; letter-spacing: -.028em; font-weight: 500; font-variant-numeric: tabular-nums; }
.text-ink { color: var(--ink); } .text-ink-2 { color: var(--ink-2); } .text-ink-3 { color: var(--ink-3); }
.text-navy { color: var(--navy); } .text-stamp { color: var(--stamp); } .text-brass-deep { color: var(--brass-deep); }
.link { background: none; border: 0; padding: 0; color: var(--navy); text-decoration: underline; text-underline-offset: 4px; font-size: .8125rem; }
.back { display: block; margin-bottom: 24px; background: none; border: 0; padding: 0; font-size: .8125rem; color: var(--ink-2); }
.back:hover { color: var(--ink); }
.w-34 { max-width: 34rem; } .w-36 { max-width: 36rem; } .w-40 { max-width: 40rem; } .w-44 { max-width: 44rem; }
.mt-1 { margin-top: .25rem; } .mt-2 { margin-top: .5rem; } .mt-3 { margin-top: .75rem; } .mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; } .mt-6 { margin-top: 1.5rem; } .mt-8 { margin-top: 2rem; }

/* controls */
.field { display: flex; flex-direction: column; gap: 6px; }
.form { display: flex; flex-direction: column; gap: 20px; }
.input, .select, .textarea { width: 100%; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--canvas); padding: 10px 14px; font-size: .9375rem; outline: none; }
.textarea { min-height: 4.5rem; resize: vertical; }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: -1px; border-color: var(--navy); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line-2); border-radius: var(--r); background: var(--canvas); color: var(--ink-2); padding: 8px 14px; font-size: .875rem; transition: border-color .15s, background .15s; }
.chip:hover { border-color: var(--navy-soft); }
.chip[aria-pressed="true"] { border-color: var(--navy); background: var(--navy-wash); color: var(--navy); }
.chip.code { font-family: var(--mono); font-size: .75rem; padding: 4px 8px; border-color: var(--line); color: var(--ink-3); }
.chip.code[aria-pressed="true"] { border-color: var(--navy); color: var(--navy); }
.chip:focus-visible, .btn:focus-visible, .rowbtn:focus-visible, .switch:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* the host's orange primary button; a form's submit goes full width */
.btn { display: inline-block; min-height: 46px; padding: 0 24px; border-radius: var(--r); border: 1px solid #fe4b1e; background: #fe4b1e; color: #fafaf9; font-size: 15.5px; font-weight: 400; text-decoration: none; line-height: 44px; text-align: center; }
.btn:hover:not(:disabled) { border-color: #e8420f; background: #e8420f; }
.btn:disabled { opacity: .6; cursor: default; }
.btn.outline { background: var(--canvas); border-color: var(--line-2); color: var(--ink); }
.btn.outline:hover:not(:disabled) { background: var(--canvas); border-color: var(--navy-soft); }
.form .btn[type="submit"] { width: 100%; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* notes */
.note { border-radius: var(--r); padding: 10px 14px; font-size: .8125rem; line-height: 1.58; }
.note.brass { border: 1px solid var(--brass); background: var(--brass-wash); color: var(--brass-deep); }
.note.sunk { border: 1px solid var(--line-2); background: var(--sunk); color: var(--ink-2); }

/* profile card, switches */
.card { border: 1px solid var(--line); border-radius: var(--r); background: var(--canvas); padding: 20px; }
@media (min-width: 40rem) { .card { padding: 24px; } }
.dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 20px; margin-top: 16px; }
@media (min-width: 40rem) { .dl { grid-template-columns: repeat(3, 1fr); } }
.dl dd { margin-top: 2px; font-size: .9375rem; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--line); }
.group-h { margin-top: 24px; }
.plan { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.plan li { display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--canvas); padding: 12px 14px; }
.plan li[data-plan="Launch"], .plan li[data-plan="Within 12 months"] { border-color: var(--navy-soft); background: var(--navy-wash); }
.plan li[hidden] { display: none; }
.plan .q { font-size: .9375rem; color: var(--ink); }
.plan .chip { padding: 5px 11px; font-size: .8125rem; background: var(--canvas); }
.plan .chip[aria-pressed="true"] { background: var(--navy-wash); }
.switch { display: flex; width: 100%; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--canvas); padding: 12px 14px; text-align: left; }
.switch[aria-checked="true"] { border-color: var(--navy-soft); background: var(--navy-wash); }
.switch .box { display: flex; flex: none; width: 16px; height: 16px; align-items: center; justify-content: center; border: 1px solid var(--line-3); border-radius: 4px; background: var(--canvas); }
.switch[aria-checked="true"] .box { border-color: var(--navy); background: var(--navy); }
.switch .box svg { width: 10px; height: 8px; display: none; }
.switch[aria-checked="true"] .box svg { display: block; }
.switch .txt { flex: 1; font-size: .9375rem; }
.switch .txt small { display: block; color: var(--ink-3); font-size: .8125rem; }
.stack { display: flex; flex-direction: column; gap: 6px; }
@media (min-width: 40rem) { .plan li { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; } .plan .q { flex: 1; } .plan .chips { gap: 6px; flex: none; } }

/* build log */
.log { display: flex; flex-direction: column; gap: 6px; margin-top: 20px; }
.log li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.log li:last-child { border-bottom: 0; }
.log .ok { color: var(--navy); }
.log .label { flex: 1; font-size: .875rem; color: var(--ink); }
.log .val { color: var(--ink-3); }

/* count, regulation rows */
.rows { margin-top: 8px; }
.rowbtn { display: flex; width: 100%; align-items: baseline; gap: 12px; border: 0; border-bottom: 1px solid var(--line); background: none; padding: 12px 0; text-align: left; transition: background .15s; }
.rowbtn:hover { background: var(--surface); }
.rowbtn .main { flex: 1; }
.rowbtn .main span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rowbtn .name { font-size: .9375rem; color: var(--ink); }
.rowbtn .fig { flex: none; font-size: 1.125rem; color: var(--ink); }
.rowbtn .nd { flex: none; font-size: .8125rem; color: var(--brass-deep); }
.excluded { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 16px; }
.excluded li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; margin-top: 6px; font-size: .875rem; color: var(--ink-2); }

/* duty card: the citation gutter, 88px, one shade darker */
.duty { display: flex; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); background: var(--canvas); }
.citation-gutter { flex: 0 0 88px; width: 88px; display: flex; flex-direction: column; gap: 2px; padding: 12px 8px; background: var(--sunk); border-right: 1px solid var(--line); font-family: var(--citation); font-size: 8.5px; font-weight: 500; line-height: 1.45; letter-spacing: .02em; color: var(--ink-2); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.duty .body { flex: 1; padding: 16px; }
.duty h4 { font-size: .9375rem; font-weight: 500; color: var(--ink); }
.duty dl { display: grid; grid-template-columns: 1fr; gap: 10px 20px; margin-top: 12px; }
@media (min-width: 40rem) { .duty dl { grid-template-columns: 1fr 1fr; } }
.duty dd { margin-top: 2px; font-size: .8125rem; color: var(--ink-2); }
.duty .small { margin-top: 8px; }
.duties { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }

/* limits, ask, download */
.dash li { display: flex; gap: 12px; margin-top: 10px; font-size: .9375rem; color: var(--ink-2); }
.dash li::before { content: ""; flex: none; width: 16px; height: 1px; margin-top: 11px; background: var(--line-3); }
.ask { border: 1px solid var(--navy-soft); border-radius: var(--r); background: var(--navy-wash); padding: 20px; color: var(--navy-deep); }
.hero { border-radius: var(--r); background: var(--navy); color: var(--on-navy); padding: 20px; display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 40rem) { .hero { flex-direction: row; align-items: center; justify-content: space-between; padding: 24px; } }
.hero .meta { color: var(--on-navy-2); margin-top: 4px; }
.hero .type-label { color: var(--on-navy-2); }
.filerow { display: flex; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--line); padding: 12px 0; text-decoration: none; color: inherit; }
.filerow:hover { background: var(--surface); }
.filerow .main { flex: 1; }
.filerow .main span { display: block; }
.filerow .size { flex: none; color: var(--ink-3); }
.filerow .get { flex: none; font-size: .8125rem; color: var(--navy); text-decoration: underline; text-underline-offset: 4px; }
.policy { display: flex; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--line); padding: 10px 0; font-size: .9375rem; }
.policy span:first-child { flex: 1; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* build screen: the flow diagram. Brand palette only: orange (motion), navy (labels), black, off-white and the warm greys. */
.flowscreen { position: fixed; inset: 0; z-index: 20; display: flex; flex-direction: column; background: #F1F0EE; padding: 20px 5vw 4vh; }
.flowhead { display: flex; align-items: baseline; gap: 24px; }
.flowscreen .back { margin: 0; }
.flow { flex: 1; min-height: 0; margin-top: 8px; }
.flow svg { display: block; width: 100%; height: 100%; }
body:has(main:not([hidden]) .flowscreen) { overflow: hidden; }   /* only while the animation is on screen */
.flow text { font-family: var(--mono); }
.flow .nt { font-family: var(--sans); font-size: 15px; fill: #1F2022; }
.flow .ns { font-size: 10.5px; letter-spacing: .05em; fill: #6B675F; }
.flow .tt { font-size: 10.5px; letter-spacing: .03em; fill: #6B675F; }
.flow .tc { font-size: 10.5px; fill: #043E77; font-variant-numeric: tabular-nums; opacity: 0; }
.flow .gl { font-size: 10px; letter-spacing: .1em; fill: #8A857C; }
.flow .gl.acc, .flow .acc { fill: #043E77; }
.flow .hb { fill: #043E77; }
.flow .hd { font-size: 10.5px; letter-spacing: .1em; }
.flow .h1 { fill: #FAFAF9; font-weight: 500; }
.flow .h2 { fill: #A8A298; }
.flow .ch { font-size: 11.5px; letter-spacing: .04em; fill: #1F2022; }
.flow .cr { font-size: 10.5px; letter-spacing: .02em; fill: #4A4744; }
.flow .cr.v { fill: #043E77; }
.flow .chipt { font-size: 9px; letter-spacing: .08em; fill: #043E77; }
.flow .chip { fill: #FAFAF9; stroke: #043E77; stroke-width: 1; }
.flow .nf { fill: #FAFAF9; }
.flow .tf, .flow .cf { fill: #FFFFFF; stroke: #E3E1DE; stroke-width: 1; }
.flow .tile.read .tf { stroke: #043E77; }
.flow .cl { stroke: #E3E1DE; stroke-width: 1; }
.flow .br path { fill: none; stroke: #8A857C; stroke-width: 1.5; }
.flow .ic { fill: none; stroke: #1F2022; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.flow .eb { fill: none; stroke: #CFCCC7; stroke-width: 1.2; opacity: 0; }
.flow .el { fill: none; stroke: #FE4B1E; stroke-width: 1.5; }
.flow .sq, .flow .sq2 { fill: #FE4B1E; }
.flow .pt { fill: #E3E1DE; }
.flow .pf { fill: #FE4B1E; }

/* starting screen: copy on the left, the form on the right, on brand navy, with the Lyzr lockup (orange and white on navy) */
.logo { display: block; width: 100%; height: auto; }
.logo--rev { --mk: #FE4B1E; --wm: #FAFAF9; }
body:has(main:not([hidden]) > #app[data-screen="invite"]) { background: #043E77; }
body:has(main:not([hidden]) > #app[data-screen="invite"]) .embed { max-width: none; padding: 0; }
.start { min-height: 100vh; display: flex; flex-direction: column; padding: clamp(20px, 2.6vw, 36px) 5vw; }
.start-logo { width: clamp(92px, 7.5vw, 128px); }
.start-grid { flex: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: 6vw; padding: 3vh 0 7vh; }
.start-copy h1 { color: #FAFAF9; font-weight: 400; font-size: clamp(34px, 4.4vw, 68px); line-height: 1.04; letter-spacing: -.02em; text-wrap: balance; }
.start-copy p { margin-top: clamp(16px, 1.8vw, 26px); max-width: 38rem; color: #E3E1DE; font-size: clamp(16px, 1.35vw, 21px); line-height: 1.5; }
.start-card { width: 100%; max-width: 560px; justify-self: end; background: #FFFFFF; border-radius: var(--r); padding: clamp(24px, 3vw, 44px); }
@media (max-width: 52rem) {
  .start-grid { grid-template-columns: 1fr; align-items: start; gap: 32px; padding-top: 6vh; }
  .start-card { justify-self: stretch; max-width: none; }
}

.boot-error { max-width: 40rem; margin: 20vh auto 0; padding: 0 20px; color: var(--ink); }
[hidden] { display: none !important; }
