/* FreePass presentation. One navigation DOM and one compact breakpoint; no framework. */
:root {
  --ink: #1d1d1f;
  --muted: #6b665e;
  --paper: #f7f5f1;
  --card: #fff;
  --line: #ded8cf;
  --accent: #b45f06;
  --accent2: #f3e5cf;
  --green: #166534;
  --red: #b91c1c;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; }
button { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
button:disabled { cursor: not-allowed; }
.hidden { display: none !important; }

/* The small back-link headers remain simple; only site-header is collapsible. */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px max(20px, calc((100vw - 1320px) / 2));
  gap: 16px;
}
.logo {
  flex-shrink: 0;
  white-space: nowrap;
  font-family: Georgia, serif;
  font-weight: 800;
  font-size: 24px;
  text-decoration: none;
}
.logo span { color: var(--accent); }
.topbar nav { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; min-width: 0; }
.linkbtn {
  border: 0;
  background: transparent;
  padding: 10px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.button {
  border: 0;
  border-radius: 10px;
  padding: 11px 15px;
  min-height: 44px;
  max-width: 100%;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}
.button-dark { background: #1f2937; color: white; }
.button-light { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.site-header { --compact-nav: 0; }
.site-nav { justify-content: flex-end; }
.site-nav .button { max-width: 245px; }
.site-nav [aria-current="true"] { color: var(--accent); background: #fcf4e9; border-radius: 8px; }
.site-nav[hidden], .nav-toggle[hidden] { display: none !important; }
.nav-toggle { gap: 9px; padding: 10px 12px; background: #fff; border: 1px solid var(--line); color: var(--ink); }
.nav-icon { width: 20px; height: 18px; display: flex; flex-direction: column; justify-content: space-between; flex: 0 0 20px; }
.nav-icon span { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .16s ease, opacity .16s ease; }
.nav-toggle[aria-expanded="true"] .nav-icon span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-icon span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-icon span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.hero { background: linear-gradient(135deg, #fff 0%, #f5efe5 100%); border-bottom: 1px solid var(--line); }
.hero-inner { max-width: 1200px; margin: auto; padding: 72px 24px; }
.eyebrow, .kicker { font-size: 12px; font-weight: 800; letter-spacing: .14em; color: var(--accent); }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; overflow-wrap: anywhere; }
h1 { font-size: clamp(42px, 6vw, 78px); line-height: .98; margin: 12px 0 20px; }
h1 em { color: var(--accent); font-weight: 500; }
.lede { max-width: 780px; font-size: 20px; line-height: 1.55; color: #4b5563; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-actions .button { font-size: 16px; padding: 13px 18px; }
.shell { max-width: 1200px; margin: 0 auto; padding: 42px 24px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-head > * { min-width: 0; }
.section-head h2 { font-size: 34px; margin: 5px 0; }
.section-head.compact { margin-top: 20px; margin-bottom: 12px; }
.filters { display: flex; gap: 10px; width: min(320px, 100%); flex-shrink: 0; }
input, select, textarea { font: inherit; border: 1px solid #cfc7bc; border-radius: 9px; padding: 11px 12px; background: white; min-width: 0; max-width: 100%; }
.filters input { min-width: 0; width: 100%; }
.publisher-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.publisher-card, .card { min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: 15px; padding: 20px; box-shadow: 0 5px 20px rgba(0, 0, 0, .035); }
.publisher-card { display: flex; flex-direction: column; gap: 12px; }
.publisher-card h3 { font-size: 24px; margin: 0; }
.publisher-card p, .card p { overflow-wrap: anywhere; }
.domain, .muted { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 9px; background: #f3f4f6; font-size: 11px; font-weight: 750; }
.badge.partner { background: #dcfce7; color: #166534; }
.demand-row { display: flex; align-items: end; justify-content: space-between; gap: 10px; }
.demand-row > div { min-width: 0; }
.demand-row > strong { flex-shrink: 0; }
.demand-number { font-family: Georgia, serif; font-size: 30px; overflow-wrap: anywhere; }
.progress { height: 7px; background: #ece7df; border-radius: 99px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.card-actions { display: flex; gap: 8px; margin-top: auto; }
.card-actions .button { flex: 1; min-width: 0; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 30px; }
.stat { min-width: 0; background: rgba(255, 255, 255, .7); border: 1px solid var(--line); border-radius: 13px; padding: 16px; }
.stat strong { font-family: Georgia, serif; font-size: 28px; display: block; overflow-wrap: anywhere; }
.stat span { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.propose-card { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 30px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.form-grid > *, .auth-form > *, .auth-form label { min-width: 0; }
.form-grid label { display: grid; gap: 6px; }
.form-grid input, .form-grid select, .form-grid textarea, .auth-form input, .auth-form select, .auth-form textarea { width: 100%; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid textarea { min-height: 90px; }
.form-grid.disabled { opacity: .55; pointer-events: none; }
.view { display: none; scroll-margin-top: 112px; }
.view.active { display: block; }
.notice { padding: 13px 16px; border-radius: 10px; background: #fff7ed; border: 1px solid #fed7aa; margin-bottom: 20px; overflow-wrap: anywhere; }
.notice.success { background: #ecfdf5; border-color: #a7f3d0; }
.notice.error { background: #fef2f2; border-color: #fecaca; }
.stack { display: grid; gap: 12px; }
.consent { display: flex; justify-content: space-between; align-items: center; gap: 20px; background: white; border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.consent > div { min-width: 0; overflow-wrap: anywhere; }
/* The track stays 48 x 28, inside a non-shrinking 48 x 44 touch target. */
.toggle { width: 48px; height: 44px; flex: 0 0 48px; border-radius: 99px; background: transparent; border: 0; position: relative; cursor: pointer; }
.toggle::before { content: ""; position: absolute; width: 48px; height: 28px; left: 0; top: 8px; border-radius: 99px; background: #d1d5db; }
.toggle::after { content: ""; position: absolute; width: 22px; height: 22px; border-radius: 50%; background: #fff; left: 3px; top: 11px; box-shadow: 0 1px 4px rgba(0, 0, 0, .2); transition: left .2s; }
.toggle.on::before { background: #15803d; }
.toggle.on::after { left: 23px; }
.toggle:disabled { opacity: .55; cursor: not-allowed; }
.request-list { display: grid; gap: 10px; }
.request-item { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.request-item > * { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.pairwise { font-family: ui-monospace, monospace; font-size: 12px; background: #f8fafc; padding: 5px 7px; border-radius: 6px; overflow-wrap: anywhere; }
.modal { position: fixed; inset: 0; background: rgba(17, 24, 39, .55); display: grid; place-items: center; padding: 16px; z-index: 100; overflow-y: auto; }
.modal-card { position: relative; width: min(480px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; background: #fff; border-radius: 16px; padding: 26px; box-shadow: 0 30px 80px rgba(0, 0, 0, .25); }
.modal-close { position: absolute; right: 6px; top: 4px; border: 0; background: transparent; font-size: 28px; width: 44px; height: 44px; cursor: pointer; }
.modal-close ~ h2 { padding-right: 26px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 15px 0; }
.tab { min-height: 44px; border: 1px solid var(--line); background: #fff; padding: 8px 12px; border-radius: 8px; cursor: pointer; }
.tab.active { background: #1f2937; color: #fff; }
.auth-form { display: grid; gap: 13px; }
.auth-form label { display: grid; gap: 6px; font-weight: 650; }
.auth-form textarea { min-height: 90px; }
.market-card { max-width: 620px; }
.language-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); gap: 8px; margin-top: 8px; }
.auth-form .language-choice { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 9px 10px; min-height: 44px; border: 1px solid #d8dde4; border-radius: 10px; background: #fff; font-weight: 650; }
.language-choice input { width: auto; margin: 0; flex: 0 0 auto; }
.language-choice span { min-width: 0; overflow-wrap: anywhere; }
fieldset { min-width: 0; border: 0; padding: 0; margin: 0; }
fieldset legend { font-weight: 750; margin-bottom: 6px; }
.publisher-page { min-height: 80vh; }
.publisher-hero { text-align: center; max-width: 850px; margin: 0 auto; padding: 85px 24px 45px; }
.publisher-hero h1 { margin-bottom: 8px; }
.big-number { font-family: Georgia, serif; font-size: 72px; color: var(--accent); margin-top: 25px; overflow-wrap: anywhere; }
.partner-note { max-width: 620px; margin: 18px auto; padding: 11px; border-radius: 9px; background: #fffbeb; border: 1px solid #fde68a; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.floating { position: fixed; bottom: 16px; right: 16px; width: min(420px, calc(100% - 32px)); max-width: 420px; margin-bottom: 0; z-index: 120; background: white; box-shadow: 0 10px 40px rgba(0, 0, 0, .15); }
footer { max-width: 1200px; margin: 40px auto 0; padding: 28px 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.control-shell h1 { font-size: 52px; }
.table-wrap { min-width: 0; max-width: 100%; overflow: auto; overscroll-behavior-x: contain; }
table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ok { color: var(--green); font-weight: 800; }
.bad { color: var(--red); font-weight: 800; }
pre { overflow: auto; background: #111827; color: #f9fafb; padding: 16px; border-radius: 10px; }
.intro { max-width: 760px; color: var(--muted); line-height: 1.6; }
.intent-field { display: grid; gap: 6px; font-size: 12px; color: var(--muted); }
.intent-field span { font-weight: 700; color: var(--ink); }
.intent-field select { width: 100%; font-size: 16px; }
.publisher-intent { max-width: 520px; margin: 16px auto 10px; text-align: left; }
.project-strip { padding-top: 28px; padding-bottom: 4px; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.project-card { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 15px; padding: 22px; box-shadow: 0 5px 20px rgba(0, 0, 0, .035); }
.project-card h2 { font-size: 26px; line-height: 1.08; margin: 8px 0 12px; }
.project-card p { color: var(--muted); line-height: 1.6; margin: 0; overflow-wrap: anywhere; }
.project-card .button { margin-top: 18px; }

/* CSS is the only breakpoint authority; app.js reads --compact-nav. */
@media (max-width: 1199px) {
  .site-header { --compact-nav: 1; flex-wrap: wrap; }
  .site-header .site-nav { width: 100%; flex: 1 0 100%; flex-direction: column; flex-wrap: nowrap; justify-content: flex-start; align-items: stretch; gap: 6px; padding: 12px 20px 18px; background: #fff; border-top: 1px solid var(--line); }
  .site-header.navigation-ready .site-nav { position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - 82px); max-height: calc(100dvh - 82px); overflow-y: auto; overscroll-behavior: contain; box-shadow: 0 14px 24px rgba(0, 0, 0, .10); }
  .site-nav > * { flex-shrink: 0; }
  .site-nav .linkbtn { width: 100%; text-align: left; padding: 12px; font-size: 16px; }
  .site-nav .button { width: 100%; max-width: none; font-size: 15px; }
}
@media (max-width: 900px) {
  .publisher-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .propose-card, .two-col, .project-grid { grid-template-columns: minmax(0, 1fr); }
  .section-head { align-items: stretch; flex-direction: column; }
  .filters { flex-direction: column; width: 100%; }
  .filters input { min-width: 0; width: 100%; }
  .project-strip { padding-top: 20px; }
  .project-card h2 { font-size: 24px; }
}
@media (max-width: 620px) {
  .topbar { padding: 10px 20px; gap: 12px; }
  .topbar:not(.site-header) { flex-wrap: wrap; }
  .topbar:not(.site-header) nav { margin-left: auto; }
  .logo { font-size: 23px; }
  .publisher-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-inner { padding: 34px 20px 38px; }
  h1 { font-size: clamp(35px, 9.5vw, 44px); line-height: 1.04; }
  .lede { font-size: 18px; line-height: 1.6; }
  .hero-actions .button { width: 100%; }
  .shell { padding: 32px 20px; }
  .section-head h2 { font-size: 30px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-grid .full { grid-column: 1; }
  .card-actions { flex-direction: column; }
  .card, .publisher-card, .project-card { padding: 18px; }
  .stat { padding: 14px; }
  .consent { padding: 16px; gap: 14px; }
  .modal-card { padding: 22px 20px; }
  .publisher-hero { padding: 40px 20px 28px; }
  .big-number { font-size: clamp(40px, 13vw, 64px); }
  .control-shell h1 { font-size: 36px; }
  .project-strip { padding-top: 20px; padding-bottom: 4px; }
  footer { flex-direction: column; gap: 10px; margin-top: 24px; padding: 24px 20px; }
}
@media (max-width: 360px) {
  .topbar { padding-left: 16px; padding-right: 16px; }
  .hero-inner, .shell, .publisher-hero { padding-left: 16px; padding-right: 16px; }
  .site-header .site-nav { padding-left: 16px; padding-right: 16px; }
  .card, .publisher-card { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-icon span, .toggle::after { transition: none; }
}


/* RC0.6.7 public/legal surfaces and cookie transparency */
.legal-page{max-width:1040px;margin:0 auto;padding:56px 24px 80px}.legal-hero{max-width:820px;margin-bottom:28px}.legal-hero h1{margin:.15em 0 .35em}.legal-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.legal-card{background:#fff;border:1px solid #e5ddd3;border-radius:14px;padding:22px}.legal-card h2{margin-top:0}.legal-card p:last-child{margin-bottom:0}.legal-note{border-left:4px solid #bd5f00;background:#fff8ef;padding:14px 16px;border-radius:8px;margin:18px 0}.legal-meta{color:#6f6257;font-size:.95rem}.legal-list{padding-left:1.2rem}.legal-list li{margin:.45rem 0}.legal-header .public-nav a.active-link{text-decoration:underline;text-underline-offset:5px}.site-footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px 24px;padding:24px 28px;border-top:1px solid #e5ddd3;background:#fff}.footer-links{display:flex;flex-wrap:wrap;gap:14px}.footer-links a{color:inherit}.footer-legal{flex-basis:100%;font-size:.85rem;color:#6f6257}.cookie-banner{position:fixed;z-index:1000;left:18px;right:18px;bottom:18px;display:flex;align-items:center;justify-content:space-between;gap:18px;max-width:1100px;margin:auto;padding:18px 20px;background:#fff;border:1px solid #d9cdbf;border-radius:14px;box-shadow:0 14px 44px rgba(20,28,38,.2)}.cookie-banner.hidden{display:none}.cookie-banner p{margin:.35rem 0 0;max-width:760px}.cookie-actions{display:flex;gap:10px;flex-shrink:0}.legal-check{display:flex;gap:10px;align-items:flex-start}.legal-check input{margin-top:.3rem;width:auto}.legal-links-inline{font-size:.9rem;margin-top:-4px}.public-nav{align-items:center}
@media(max-width:900px){.legal-grid{grid-template-columns:1fr}.legal-header .public-nav{display:none}.legal-header .public-nav.open{display:flex}.legal-page{padding:34px 18px 70px}.cookie-banner{align-items:stretch;flex-direction:column;left:10px;right:10px;bottom:10px}.cookie-actions{flex-wrap:wrap}.cookie-actions .button{flex:1 1 180px}.site-footer{padding:22px 18px;align-items:flex-start}.footer-links{flex-basis:100%}}
@media(max-width:420px){.legal-page{padding-left:14px;padding-right:14px}.legal-card{padding:17px}.cookie-banner{padding:15px}.cookie-actions{flex-direction:column}.cookie-actions .button{width:100%;flex-basis:auto}}
