/* Hostguild public site. Phone first: base styles are for ~390px, wider screens add to them. */
:root {
  --brand: #f4b400;
  --on-brand: #16212b;
  --money: #1f7a47;
  --money-soft: #e3f2e8;
  --money-text: #17603a;
  --bg: #f6f7f4;
  --surface: #ffffff;
  --ink: #16212b;
  --ink-soft: #3a4550;
  --ink-mute: #545f69;
  --line: #dde1dc;
  --brand-wash: #fffaeb;
  --brand-line: #f1d77f;
  --owner: #16212b;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --money: #3aa66a;
    --money-soft: #13301f;
    --money-text: #84d6a8;
    --bg: #0f151a;
    --surface: #161e24;
    --ink: #f0f3f4;
    --ink-soft: #c5cdd3;
    --ink-mute: #a6b0b8;
    --line: #2a343d;
    --brand-wash: #221d0e;
    --brand-line: #5e4b10;
    --owner: #c5cdd3;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-wrap: break-word;
}
h1, h2, h3, .wordmark {
  font-family: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h1 { font-size: 2.25rem; margin: 0 0 1rem; }
h2 { font-size: 1.6rem; margin: 0 0 0.75rem; }
h3 { font-size: 1.15rem; margin: 0 0 0.35rem; }
p { margin: 0 0 1rem; }
a { color: inherit; }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.brand img { width: 32px; height: 32px; }
.wordmark { font-size: 1.3rem; font-weight: 700; }
.header-links { display: flex; align-items: center; gap: 4px; }
.header-links .text-link { display: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 20px; border-radius: 12px;
  font-weight: 600; text-decoration: none; font-size: 1rem;
  border: 1px solid transparent;
}
.btn-brand { background: var(--brand); color: var(--on-brand); }
.btn-brand:hover { background: #e0a600; }
.btn-ghost { border-color: var(--line); background: var(--surface); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-mute); }
.btn-small { min-height: 44px; padding: 0 16px; font-size: 0.95rem; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; text-decoration: none; color: var(--ink-soft); font-weight: 500; }
.text-link:hover { color: var(--ink); text-decoration: underline; }

/* Hero */
.hero { padding: 40px 0 32px; }
.eyebrow { display: inline-block; font-size: 0.85rem; font-weight: 600; color: var(--money-text); background: var(--money-soft); border-radius: 999px; padding: 4px 12px; margin-bottom: 16px; }
.lead { font-size: 1.15rem; color: var(--ink-soft); }
.hero-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.hero-actions .btn { width: 100%; }
.hero-note { font-size: 0.9rem; color: var(--ink-mute); margin-top: 12px; }

/* Split card (the signature visual) */
.split-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; margin-top: 32px; }
.split-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.split-head strong { font-size: 1.05rem; }
.split-sub { font-size: 0.9rem; color: var(--ink-mute); margin-bottom: 14px; }
.split-bar { display: flex; height: 18px; border-radius: 999px; overflow: hidden; gap: 3px; }
.split-bar span { display: block; }
.seg-owner { background: var(--owner); }
.seg-manager { background: var(--brand); }
.seg-cleaner { background: var(--money); }
.split-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.split-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 0.98rem; }
.who { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.amt { font-variant-numeric: tabular-nums; font-weight: 600; }
.split-foot { font-size: 0.85rem; color: var(--ink-mute); margin: 14px 0 0; border-top: 1px solid var(--line); padding-top: 12px; }

/* Sections */
section { padding: 40px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-intro { color: var(--ink-soft); max-width: 640px; }
.grid { display: grid; gap: 14px; margin-top: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.section-alt .card { background: var(--bg); }
.card p { color: var(--ink-soft); margin: 0; font-size: 0.98rem; }
.icon { width: 40px; height: 40px; border-radius: 12px; background: var(--brand); color: var(--on-brand); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.icon svg { width: 22px; height: 22px; }
.icon.green { background: var(--money); color: #fff; }

.steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; }
.steps li::before { content: counter(step); width: 40px; height: 40px; border-radius: 999px; background: var(--brand); color: var(--on-brand); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.steps p { color: var(--ink-soft); margin: 0; }

.callout { background: var(--brand-wash); border: 1px solid var(--brand-line); border-radius: 16px; padding: 18px; margin-top: 24px; }
.callout p:last-child { margin-bottom: 0; }

.contact-box { display: grid; gap: 10px; margin-top: 20px; }
.contact-box .btn { width: 100%; }

/* Footer */
.site-footer { padding: 32px 0 40px; color: var(--ink-mute); font-size: 0.95rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 4px; margin: 0 -10px 12px; }
.footer-links a { color: var(--ink-soft); }

/* Legal pages */
.legal { padding: 32px 0 24px; max-width: 720px; }
.legal h2 { font-size: 1.3rem; margin-top: 2rem; }
.legal ul { padding-left: 1.25rem; }
.legal li { margin-bottom: 0.4rem; }
.legal .updated { color: var(--ink-mute); font-size: 0.95rem; }
.legal a { text-decoration-thickness: 1px; text-underline-offset: 2px; }

@media (min-width: 640px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2rem; }
  .header-links .text-link { display: inline-flex; }
  .hero-actions { flex-direction: row; }
  .hero-actions .btn { width: auto; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .contact-box { grid-template-columns: auto auto; justify-content: start; }
  .contact-box .btn { width: auto; }
  section { padding: 56px 0; }
}
@media (min-width: 960px) {
  .hero { padding: 72px 0 56px; }
  .hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
  .split-card { margin-top: 0; padding: 24px; }
  .grid.three { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li { grid-template-columns: 1fr; }
}
