/* Hubline public website. Brand: CLAUDE.md Section 11. */
:root {
  --ink: #111418;
  --paper: #f4f1ea;
  --signal: #f0501a;
  --slate: #5a6472;
  --sand: #e6dccb;
  --route: #2f6bff;
  --route-dark: #1f4fd1; /* Route Blue darkened for small link text on Paper (AA) */
  --fog: #8a94a3;
  --card: #fffdf8;
  --display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --radius: 12px;
  --shadow: 0 1px 2px rgb(17 20 24 / 6%), 0 4px 16px rgb(17 20 24 / 6%);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--route-dark); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--route); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 7vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.muted { color: var(--slate); }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* Wordmark */
.brand { display: inline-flex; flex-direction: column; text-decoration: none; color: inherit; }
.brand-row { display: flex; align-items: center; gap: 8px; }
.brand-word { font-family: var(--display); font-weight: 700; font-size: 28px; line-height: 1; letter-spacing: -0.03em; }
.brand-route { width: 40px; height: 17px; }
.brand-sub { margin-top: 4px; font-size: 9.5px; font-weight: 600; letter-spacing: 0.32em; color: var(--slate); }
.dark .brand-sub { color: #b9c0ca; }

/* Header */
.site-header { border-bottom: 1px solid var(--sand); background: var(--paper); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; padding: 10px 0; }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--signal); }
.nav a:hover { color: var(--slate); }
@media (max-width: 559px) {
  .site-header .wrap { flex-direction: column; align-items: flex-start; gap: 4px; }
  .nav { gap: 0 16px; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 22px; border-radius: 10px;
  font: 600 16px/1.2 var(--body); text-decoration: none; cursor: pointer; border: 2px solid transparent;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--signal); color: var(--ink); }
.btn-primary:hover { background: #ff6a37; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.dark .btn-ghost { color: var(--paper); border-color: var(--paper); }
.dark .btn-ghost:hover { background: var(--paper); color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Sections */
section { padding: 56px 0; }
@media (min-width: 768px) { section { padding: 80px 0; } }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate); margin-bottom: 12px; }
.lead { font-size: clamp(1.1rem, 2.6vw, 1.3rem); color: var(--slate); max-width: 40rem; }
.dark { background: var(--ink); color: var(--paper); }
.dark .lead, .dark .muted { color: #c9ced6; }
.dark .eyebrow { color: #b9c0ca; }
.dark a:not(.btn) { color: #9db8ff; }

.hero { padding-top: 48px; }
@media (min-width: 768px) { .hero { padding-top: 88px; } }
.hero h1 { max-width: 14ch; }
.hero .accent { color: var(--signal); }

.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) and (max-width: 899px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }

.card { background: var(--card); border: 1px solid var(--sand); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 0.35em; }
.card p:last-child { margin-bottom: 0; }
.dark .card { background: #1b2027; border-color: #2a313b; box-shadow: none; }
.icon { width: 40px; height: 40px; border-radius: 10px; background: var(--sand); display: grid; place-items: center; margin-bottom: 14px; }
.icon svg { width: 22px; height: 22px; stroke: var(--ink); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }


.benefits-head { max-width: 44rem; margin-bottom: 36px; }
.benefit { display: flex; flex-direction: column; gap: 4px; padding-top: 20px; border-top: 1px solid #2a313b; }
.benefit h3 { margin: 10px 0 2px; }
.benefit p { margin: 0; color: #c9ced6; }
.benefit-icon { width: 48px; height: 48px; border-radius: 12px; background: rgb(240 80 26 / 14%); display: grid; place-items: center; }
.benefit-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--signal); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 640px) { .benefits { gap: 32px 24px; } }

.who > div:first-child { max-width: 40rem; margin: 0 auto 20px; text-align: center; }
.who > div:last-child > p { text-align: center; }
.categories { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
@media (min-width: 560px) { .categories { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .categories { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.category { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; font-weight: 600; line-height: 1.3; }
.category > * { min-width: 0; }
.category-img { flex: none; display: block; width: 88px; height: 88px; margin: 0 auto; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps li { counter-increment: step; position: relative; }
.steps li img, .steps li svg { display: block; width: 100%; height: auto; border-radius: 14px; margin-bottom: 14px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: var(--paper);
  display: grid; place-items: center; font: 700 18px/1 var(--display);
}
.steps h3 { margin: 6px 0 4px; }
@media (min-width: 640px) { .steps.steps-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; } }
@media (min-width: 1000px) { .steps.steps-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.not-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.not-list li { display: flex; gap: 12px; align-items: flex-start; }
.not-list li::before { content: ""; flex: none; width: 18px; height: 2px; margin-top: 13px; background: var(--fog); }

.yes-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.yes-list li { display: flex; gap: 12px; align-items: flex-start; }
.yes-list svg { flex: none; width: 22px; height: 22px; margin-top: 3px; stroke: var(--signal); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

.stat { font: 700 clamp(1.8rem, 5vw, 2.4rem)/1 var(--display); margin-bottom: 6px; }

.hub-card { display: flex; flex-direction: column; gap: 6px; }
.hub-card .tag { align-self: flex-start; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #dcefe2; color: #14532d; }
.hub-card .tag.soon { background: var(--sand); color: var(--ink); }

.cta-band { border-radius: var(--radius); padding: 32px 22px; }
@media (min-width: 768px) { .cta-band { padding: 48px; } }

.prose { max-width: 44rem; }
.prose h2 { font-size: 1.35rem; margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.4em; }

/* Footer */
.site-footer { background: var(--ink); color: #c9ced6; padding: 40px 0 32px; font-size: 15px; }
.site-footer .brand-word { color: var(--paper); }
.site-footer a { color: var(--paper); }
.footer-grid { display: grid; gap: 24px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid h2 { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: #b9c0ca; font-family: var(--body); font-weight: 600; margin-bottom: 12px; }
.footer-base { margin-top: 32px; padding-top: 20px; border-top: 1px solid #2a313b; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: #9aa3ae; font-size: 14px; }

@media (min-width: 640px) { .trio { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Illustrations */
.illo { margin: -6px -6px 18px; }
.illo img, .illo svg { display: block; width: 100%; height: auto; border-radius: 10px; }
.steps li::before { left: 12px; top: 12px; z-index: 1; box-shadow: 0 0 0 3px var(--paper); }
.look-head { margin-bottom: 28px; }
.look-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.look-list li { display: flex; align-items: center; gap: 16px; font-weight: 500; }
.look-list img, .look-list svg { flex: none; width: 72px; height: 72px; }
@media (min-width: 640px) {
  .look-list { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
  .look-list li { flex-direction: column; text-align: center; gap: 12px; }
  .look-list img, .look-list svg { width: 100%; max-width: 112px; height: auto; }
}
.hubs-map { display: block; width: 100%; height: auto; margin-bottom: 20px; }

/* Forms */
.contact-grid { display: grid; gap: 16px; align-items: start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); } }
.form-card h2 { font-size: 1.5rem; margin-bottom: 0.3em; }
.form-card form { margin-top: 16px; }
.form-grid { display: grid; gap: 16px; margin-bottom: 20px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .field-wide { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .field .label { font-weight: 600; font-size: 15px; }
.optional { font-weight: 400; color: var(--slate); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #cfc4b1; border-radius: 10px;
  background: #fff; color: var(--ink); font: 16px/1.4 var(--body);
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--route); box-shadow: 0 0 0 3px rgb(47 107 255 / 25%); }
.field input::placeholder, .field textarea::placeholder { color: #7a8391; }
.hint { font-size: 14px; color: var(--slate); margin: 0; }
.location-field { background: var(--paper); border-radius: 10px; padding: 14px; }
.location-field .btn { align-self: flex-start; }
.or-label { margin-top: 8px; }
.check { flex-direction: row; align-items: flex-start; gap: 10px; }
.check input { width: 22px; height: 22px; min-height: 0; flex: none; margin-top: 2px; accent-color: var(--ink); }
.check label { font-weight: 400; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 16px 0 0; padding: 12px 14px; border-radius: 10px; font-weight: 500; }
.form-status.success { background: #dcefe2; color: #14532d; }
.form-status.error { background: #fbe1dc; color: #8a1c0b; }
.btn:disabled { opacity: 0.6; cursor: progress; }

/* Home hubs map */
.map-section { padding-top: 0; }
.map-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.map-head p { margin: 0; }
.hub-map { position: relative; border-radius: 18px; overflow: hidden; background: #EFE6D6; aspect-ratio: 4 / 3.4; }
@media (min-width: 768px) { .hub-map { aspect-ratio: 16 / 8; } }
.hub-map-fallback { width: 100%; height: 100%; object-fit: contain; }
.hub-map .hub-map-canvas { position: absolute; inset: 0; } /* beats maplibre's position: relative */
.hub-map.is-live .hub-map-fallback { visibility: hidden; }
.hub-map .maplibregl-popup-content { font: 14px/1.45 var(--body); color: var(--ink); border-radius: 10px; padding: 10px 14px; box-shadow: var(--shadow); }
.hub-map .maplibregl-popup-content a { color: var(--route-dark); font-weight: 600; }

/* Become a host: steps above the form */
.host-steps-section { padding-top: 0; padding-bottom: 32px; }
.host-steps-section h2 { font-size: 1.5rem; }
.host-steps { counter-reset: hs; list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 14px; }
@media (min-width: 640px) { .host-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .host-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.host-steps li { counter-increment: hs; display: flex; align-items: flex-start; gap: 12px; font-weight: 500; }
.host-steps li::before { content: counter(hs); flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font: 700 16px/1 var(--display); }
.form-solo { max-width: 860px; }
