/* Mostly Hostly — one static page, no build step.
   Visual system from the Claude Design canvas (Space Grotesk + IBM Plex Sans,
   oklch palette, green "online" accent), reworked into a semantic token layer
   with light + dark themes. */

:root {
  color-scheme: light dark;

  /* --- brand (stable across themes) --- */
  --brand:        oklch(72% 0.19 142);   /* the green "online" dot */
  --brand-dim:    oklch(82% 0.09 142);
  --brand-ink:    oklch(22% 0.04 150);   /* text/icons on a --brand fill */

  /* --- roles: LIGHT --- */
  --bg:                oklch(97% 0.006 240);
  --bg-raised:         oklch(99.5% 0.002 240);
  --bg-invert:         oklch(20% 0.014 250);   /* "dark section" on a light page */
  --bg-invert-raised:  oklch(25% 0.016 250);
  --field:             oklch(27% 0.016 250);

  --text:              oklch(19% 0.012 240);
  --text-muted:        oklch(44% 0.012 240);
  --text-invert:       oklch(96% 0.006 240);
  --text-invert-muted: oklch(78% 0.015 250);

  --border:            oklch(90% 0.006 240);
  --border-strong:     oklch(84% 0.008 240);
  --border-invert:     oklch(34% 0.02 250);

  --accent-text:       oklch(44% 0.13 142);    /* green that reads as text on --bg */
  --logo-pill:         oklch(19% 0.012 240);

  --shadow:            0 30px 60px -24px oklch(20% 0.03 250 / 0.28);
  --shadow-sm:         0 2px 8px -2px oklch(20% 0.03 250 / 0.12);
  --focus:             oklch(58% 0.16 250);

  /* --- scale --- */
  --wrap: 1200px;
  --section-pad: clamp(3.5rem, 8vw, 5.5rem);
  --radius: 16px;
  --sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --display: 'Space Grotesk', var(--sans);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:                oklch(16% 0.012 255);
    --bg-raised:         oklch(20.5% 0.014 255);
    --bg-invert:         oklch(23% 0.016 255);   /* now a raised panel, keeps section rhythm */
    --bg-invert-raised:  oklch(27% 0.018 255);
    --field:             oklch(27% 0.018 255);

    --text:              oklch(93% 0.008 240);
    --text-muted:        oklch(68% 0.014 250);
    --text-invert:       oklch(95% 0.006 240);
    --text-invert-muted: oklch(72% 0.014 250);

    --border:            oklch(30% 0.014 255);
    --border-strong:     oklch(38% 0.018 255);
    --border-invert:     oklch(38% 0.02 255);

    --accent-text:       oklch(78% 0.15 142);
    --brand-ink:         oklch(18% 0.03 150);
    --logo-pill:         oklch(26% 0.016 255);

    --shadow:            0 30px 60px -24px oklch(0% 0 0 / 0.5);
    --shadow-sm:         0 2px 8px -2px oklch(0% 0 0 / 0.4);
    --focus:             oklch(72% 0.14 250);
  }
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--display);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
p { text-wrap: pretty; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }

:where(a, button, input, textarea, summary):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--bg-raised);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  font-weight: 600;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

@keyframes fadeUp   { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes floatSlow{ 0%,100% { transform: none; } 50% { transform: translateY(-8px); } }
@keyframes dotFlash { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: inherit;
  font-weight: 600;
  line-height: 1;
  border-radius: 100px;
  white-space: nowrap;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background-color .15s ease, border-color .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-amber { background: var(--brand); color: var(--brand-ink); }        /* primary / brand */
.btn-amber:hover { opacity: 0.92; }
.btn-ink { background: var(--text); color: var(--bg); }                  /* high-contrast, theme-inverting */
.btn-ink:hover { opacity: 0.9; }
.btn-outline { border-color: var(--border-strong); color: var(--text); }
.btn-outline:hover { border-color: var(--text); background: color-mix(in oklab, var(--text) 5%, transparent); }

.btn-nav  { font-size: 14.5px; padding: 11px 20px; }
.btn-hero { font-size: 16px;   padding: 15px 26px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  min-height: 64px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand svg { display: block; }
.brand-word {
  font-family: var(--display); font-weight: 700; font-size: 17px;
  letter-spacing: -0.02em;
}
.brand-word .accent { color: var(--accent-text); }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--text-muted); }
.nav-links a:hover { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.nav-menu-cta { display: none; }
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--border-strong);
  border-radius: 10px; color: var(--text); cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

/* ---------- hero ---------- */
.hero {
  display: flex; align-items: center; gap: 56px; flex-wrap: wrap;
  padding-block: clamp(2.5rem, 7vw, 5rem) clamp(2.5rem, 6vw, 4rem);
}
.hero-copy, .hero-visual { flex: 1 1 420px; min-width: 0; }
.hero-copy { animation: fadeUp .7s ease both; }
.hero-visual { flex-basis: 380px; animation: fadeUp .8s .1s ease both; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-raised); border: 1px solid var(--border);
  padding: 6px 14px; border-radius: 100px;
  font-size: 13.5px; font-weight: 600; color: var(--accent-text);
  margin-bottom: 22px;
}
.eyebrow .pip { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }

.hero h1 {
  font-size: clamp(34px, 5vw, 54px); line-height: 1.06; font-weight: 700;
  margin: 0 0 20px;
}
.hero-sub {
  font-size: clamp(16px, 2.4vw, 18px); line-height: 1.6; color: var(--text-muted);
  max-width: 480px; margin: 0 0 30px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* app-window mock cards (hero + console) */
.mock {
  background: var(--bg-invert);
  border: 1px solid var(--border-invert);
  border-radius: 20px; padding: 20px;
  box-shadow: var(--shadow);
}
.mock--float { animation: floatSlow 6s ease-in-out infinite; }
.mock-dots { display: flex; gap: 6px; margin-bottom: 16px; }
.mock-dots span { width: 10px; height: 10px; border-radius: 50%; }
.mock-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 4px; border-bottom: 1px solid var(--border-invert);
}
.mock-row:last-child { border-bottom: 0; }
.mock-row .left { display: flex; align-items: center; gap: 10px; }
.mock-row .site { color: var(--text-invert); font-size: 14.5px; font-weight: 500; }
.mock-row .status { color: var(--text-invert-muted); font-size: 12.5px; }
.mock-row .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }

/* ---------- trust strip ---------- */
.strip { border-block: 1px solid var(--border); background: var(--bg-raised); }
.strip-inner {
  display: flex; gap: 20px 36px; flex-wrap: wrap; justify-content: space-between;
  padding-block: 26px;
}
.strip-item { display: flex; align-items: center; gap: 10px; flex: 1 1 210px; }
.strip-item .badge {
  width: 34px; height: 34px; border-radius: 9px; background: var(--bg);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.strip-item .label { font-size: 14.5px; font-weight: 500; color: var(--text); }

/* ---------- section scaffolding ---------- */
.section { padding-block: var(--section-pad); }
.section--flush-bottom { padding-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.section--flush-top { padding-top: clamp(1.5rem, 4vw, 2.5rem); }

.section-head { max-width: 600px; margin: 0 auto clamp(2.5rem, 6vw, 3.5rem); text-align: center; }
.kicker {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 10px; color: var(--accent-text);
}
.section-head h2 { font-size: clamp(27px, 4vw, 38px); font-weight: 700; margin: 0 0 14px; }
.section-head h2:last-child { margin-bottom: 0; }
.section-head p { color: var(--text-muted); font-size: 16px; margin: 0; }

.icon { width: 20px; height: 20px; display: block; color: var(--text); }

.step, .feature, .plan {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.step:hover, .feature:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { padding: 28px; }
.step .n { font-family: var(--display); font-size: 32px; font-weight: 700; color: var(--accent-text); margin-bottom: 14px; }
.step h3 { font-size: 18px; font-weight: 600; margin: 0 0 8px; }
.step p { font-size: 15px; line-height: 1.6; color: var(--text-muted); margin: 0; }

/* ---------- feature grid ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.feature { padding: 26px; }
.feature .badge {
  width: 40px; height: 40px; border-radius: 10px; background: var(--bg);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.feature h3 { font-size: 16.5px; font-weight: 600; margin: 0 0 6px; }
.feature p { font-size: 14.5px; line-height: 1.55; color: var(--text-muted); margin: 0; }

/* ---------- bar-owner add-ons (inverted) ---------- */
.bar { background: var(--bg-invert); padding-block: var(--section-pad); }
.bar .section-head h2 { color: var(--text-invert); }
.bar .section-head p { color: var(--text-invert-muted); }
.bar .kicker { color: var(--accent-text); }
.bar .section-head { margin-bottom: clamp(1.5rem, 4vw, 2rem); }

.industry-picker {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  margin: 0 auto clamp(2rem, 5vw, 2.75rem);
}
.chip {
  font: inherit; font-size: 14px; font-weight: 600; line-height: 1;
  padding: 10px 18px; border-radius: 100px; cursor: pointer;
  color: var(--text-invert-muted);
  background: transparent;
  border: 1px solid var(--border-invert);
  transition: color .15s ease, background-color .15s ease, border-color .15s ease;
}
.chip:hover { color: var(--text-invert); border-color: var(--text-invert-muted); }
.chip[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }

.addon-eg { color: var(--text-invert); font-weight: 600; }

.addons { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.addon {
  background: var(--bg-invert-raised); border-radius: 18px; padding: 30px;
  border: 1px solid var(--border-invert);
  transition: transform .15s ease, border-color .15s ease;
}
.addon:hover { transform: translateY(-3px); border-color: var(--brand); }
.addon .badge {
  width: 44px; height: 44px; border-radius: 11px; background: var(--brand);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.addon .badge .icon { color: var(--brand-ink); }
.addon h3 { color: var(--text-invert); font-size: 19px; font-weight: 600; margin: 0 0 8px; }
.addon p { color: var(--text-invert-muted); font-size: 15px; line-height: 1.6; margin: 0 0 16px; }
.addon a { color: var(--brand); font-weight: 600; font-size: 14.5px; }
.addon a:hover { text-decoration: underline; }

/* ---------- pricing ---------- */
.plans {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px; max-width: 820px; margin: 0 auto;
}
.plan { padding: 32px; border-width: 2px; display: flex; flex-direction: column; }
.plan.hi { border-color: var(--brand); }
.plan:hover { transform: none; box-shadow: none; }
.plan h3 { font-size: 18px; font-weight: 600; margin: 0 0 6px; }
.plan .tagline { color: var(--text-muted); font-size: 14.5px; margin: 0 0 18px; }
.plan .price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 20px; }
.plan .price b { font-family: var(--display); font-size: 38px; font-weight: 700; }
.plan .price b.price-sm { font-size: 21px; }
.plan .price span { color: var(--text-muted); font-size: 14.5px; }
.plan .feat { display: flex; align-items: baseline; gap: 9px; padding: 7px 0; font-size: 14.5px; color: var(--text); }
.plan .feat .check { color: var(--accent-text); font-weight: 700; flex: none; }
.plan .cta { justify-content: center; margin-top: auto; padding: 14px; width: 100%; }
.plan .feat:last-of-type { margin-bottom: 22px; }
.plans-foot { max-width: 620px; margin: clamp(2rem, 5vw, 2.5rem) auto 0; text-align: center; color: var(--text-muted); font-size: 14.5px; line-height: 1.6; }

/* ---------- about ---------- */
.about { background: var(--bg-raised); border-block: 1px solid var(--border); }
.about-inner { max-width: 760px; margin: 0 auto; padding: var(--section-pad) 24px; text-align: center; }
.about-inner .kicker { margin-bottom: 14px; }
.about-inner h2 { font-size: clamp(25px, 4vw, 34px); font-weight: 700; margin: 0 0 20px; }
.about-inner p { font-size: clamp(16px, 2.2vw, 17px); line-height: 1.75; color: var(--text-muted); margin: 0; }

/* ---------- login preview ---------- */
.login { display: flex; gap: 56px; align-items: center; flex-wrap: wrap; }
.login-copy, .login-visual { flex: 1 1 380px; min-width: 0; }
.login-copy h2 { font-size: clamp(25px, 4vw, 34px); font-weight: 700; margin: 0 0 16px; }
.login-copy > p { font-size: 16px; line-height: 1.65; color: var(--text-muted); margin: 0 0 20px; max-width: 440px; }
.roles { display: flex; gap: 12px 22px; flex-wrap: wrap; }
.role { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; }
.role .pip { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex: none; }
.console-tabs { display: flex; gap: 10px; margin-bottom: 18px; }
.console-tabs .on { background: var(--brand); color: var(--brand-ink); font-size: 12.5px; font-weight: 700; padding: 6px 14px; border-radius: 100px; }
.console-tabs .off { color: var(--text-invert-muted); font-size: 12.5px; font-weight: 600; padding: 6px 14px; }
.console .mock-row .status { color: var(--brand); font-weight: 600; }

/* ---------- contact (inverted) ---------- */
.contact { background: var(--bg-invert); padding-block: var(--section-pad); }
.contact-inner { max-width: 560px; margin: 0 auto; text-align: center; }
.contact-inner h2 { font-size: clamp(27px, 4vw, 38px); font-weight: 700; color: var(--text-invert); margin: 0 0 14px; }
.contact-inner > p { color: var(--text-invert-muted); font-size: 16px; margin: 0 0 32px; }
.contact-form { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.contact-form input, .contact-form textarea {
  padding: 14px 16px; border-radius: 10px;
  border: 1px solid var(--border-invert); background: var(--field);
  color: var(--text-invert); font-size: 15px; font-family: inherit;
}
.contact-form textarea { resize: vertical; min-height: 90px; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--text-invert-muted); }
.contact-form button {
  background: var(--brand); color: var(--brand-ink); font-weight: 700; font-size: 15.5px;
  padding: 15px; border-radius: 100px; border: none; cursor: pointer; margin-top: 6px;
  transition: opacity .15s ease, transform .12s ease;
}
.contact-form button:hover { opacity: 0.92; transform: translateY(-1px); }
.contact-done {
  background: var(--bg-invert-raised); border: 1px solid var(--border-invert);
  border-radius: 16px; padding: 28px; color: var(--text-invert); font-size: 16px; font-weight: 600;
}
[hidden] { display: none !important; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--bg-raised); }
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 14px; padding-block: 32px;
}
.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-brand span { font-family: var(--display); font-weight: 700; font-size: 15px; }
.footer-brand .accent { color: var(--accent-text); }
.footer-inner .copy { font-size: 13.5px; color: var(--text-muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--text); text-decoration: underline; }

/* ---------- legal pages ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: clamp(2.5rem, 7vw, 4.5rem) 24px clamp(3.5rem, 9vw, 6rem); }
.legal .eyebrow { margin-bottom: 18px; }
.legal h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); margin: 0 0 10px; }
.legal .updated { color: var(--text-muted); font-size: 14px; margin: 0 0 28px; }
.legal h2 {
  font-size: 1.2rem; margin: 2.4rem 0 0.7rem; padding-top: 1.4rem;
  border-top: 1px solid var(--border);
}
.legal h3 { font-family: var(--display); font-size: 1.02rem; margin: 1.5rem 0 0.5rem; }
.legal p, .legal li { color: var(--text); }
.legal a { color: var(--accent-text); text-decoration: underline; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin: 0.35rem 0; }
.legal blockquote {
  margin: 1.2rem 0; padding: 0.6rem 1rem; border-left: 3px solid var(--brand-dim);
  background: var(--bg-raised); border-radius: 0 8px 8px 0; color: var(--text-muted);
}
.legal .table-scroll { overflow-x: auto; margin: 1rem 0; }
.legal table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
.legal th, .legal td {
  text-align: left; vertical-align: top; padding: 8px 12px;
  border: 1px solid var(--border);
}
.legal th { background: var(--bg-raised); font-family: var(--display); font-weight: 600; }
.legal hr { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }
.legal .backlink { display: inline-block; margin-top: 2.5rem; font-weight: 600; color: var(--accent-text); }

/* ---------- responsive ---------- */
@media (max-width: 780px) {
  .nav-toggle { display: inline-flex; }
  .nav-bar-cta { display: none; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 100%; z-index: 100;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 6px 24px 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 14px 2px; font-size: 16px; border-bottom: 1px solid var(--border); color: var(--text); }
  .nav-menu-cta { display: inline-flex; justify-content: center; padding: 14px; margin-top: 12px; }
}

@media (max-width: 780px) {
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero { gap: 36px; }
  .step, .feature, .addon, .plan { padding: 24px; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
}
