/* ==========================================================================
   Roombelt — static site styles
   Brand palette matches roombelt.com primary (--primary-1: #1756a2, blue).
   ========================================================================== */

:root {
  --brand: #1756a2;
  --brand-dark: #134785;
  --brand-light: #eaf1f9;
  --brand-lighter: #d6e4f4;
  --ink: #101828;
  --body: #475467;
  --muted: #667085;
  --border: #e4e7ec;
  --border-strong: #d0d5dd;
  --bg: #ffffff;
  --bg-soft: #f9fafb;
  --bg-dark: #1d2939;
  --success: #12b76a;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .1);
  --shadow-md: 0 4px 8px -2px rgba(16, 24, 40, .1), 0 2px 4px -2px rgba(16, 24, 40, .06);
  --shadow-lg: 0 20px 24px -4px rgba(16, 24, 40, .08), 0 8px 8px -4px rgba(16, 24, 40, .03);
  --maxw: 1120px;
  --font: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow { color: var(--brand-dark); font-weight: 600; font-size: .95rem; letter-spacing: .01em; margin-bottom: .75rem; }
.section { padding: 88px 0; }
.section--soft { background: var(--bg-soft); }
.section__head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section__head p { font-size: 1.15rem; color: var(--muted); }
.center { text-align: center; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: 1rem;
  border: 1px solid transparent; cursor: pointer; transition: background .15s, box-shadow .15s, transform .05s;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--brand-dark); color: #fff; }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { background: var(--bg-soft); }
.btn--lg { padding: 15px 28px; font-size: 1.05rem; }
.btn--on-dark { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.25); }
.btn--on-dark:hover { background: rgba(255,255,255,.18); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav__brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; color: var(--ink); font-size: 1.15rem; }
.nav__brand img { height: 26px; width: auto; }
.nav__brand:hover { text-decoration: none; }
.nav__links { display: flex; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.nav__links a:not(.btn) {
  color: var(--body); font-weight: 500; padding: 8px 12px; border-radius: 8px; font-size: .98rem;
}
.nav__links a:not(.btn):hover { color: var(--ink); background: var(--bg-soft); text-decoration: none; }
.nav__toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 64px; background:
    radial-gradient(1000px 400px at 50% -80px, var(--brand-lighter), transparent 70%); }
.hero__inner { max-width: 800px; margin: 0 auto; text-align: center; }
.hero p.lead { font-size: 1.25rem; color: var(--muted); max-width: 620px; margin: 0 auto 2rem; }
.hero__cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero__note { margin-top: 1rem; color: var(--muted); font-size: .95rem; }
.hero__media {
  margin: 0 auto; max-width: 960px; border-radius: var(--radius-lg);
  border: 1px solid var(--border); box-shadow: var(--shadow-lg); overflow: hidden; background: #fff;
}
/* Live device preview embedded in a tablet frame */
.hero__media--live {
  background: #0e0e0e; padding: 9px; border: 1px solid #000; border-radius: 16px;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, .05);
}
.hero__media--live iframe {
  width: 100%; aspect-ratio: 16 / 9; height: auto; display: block;
  background: #0b1220; border: 1px solid #333; border-radius: 8px;
}
/* "Try it live!" handwriting annotation above the device */
.hero__demo { position: relative; max-width: 960px; margin: 104px auto 0; }
.hero__annotation {
  position: absolute; top: -10px; right: 20px; z-index: 3;
  display: flex; flex-direction: column; align-items: flex-end;
  transform: translateY(-100%); pointer-events: none;
}
.handwriting {
  font-family: 'Caveat', cursive; font-weight: 600; font-size: 34px; line-height: 1;
  color: var(--ink); letter-spacing: -.01em; transform: rotate(-6deg);
}
.handwriting-arrow { width: 26px; height: auto; margin-top: 6px; margin-right: 26px; }
@media (max-width: 767px) { .hero__annotation { display: none; } }

/* ---------- Feature grid ---------- */
.grid { display: grid; gap: 32px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.feature h3 { margin-bottom: .35rem; }
.feature p { color: var(--muted); margin: 0; }

/* ---------- Split showcase ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split__media img {
  border-radius: var(--radius-lg); border: 1px solid var(--ink); background: #fff;
  box-shadow: 0 24px 48px -16px rgba(16, 24, 40, .22), 0 8px 20px -12px rgba(16, 24, 40, .12);
}
/* reversed layout on desktop, text-first order preserved for mobile readers */
@media (min-width: 861px) { .split--reverse .split__media { order: -1; } }
.checklist { list-style: none; margin: 1.25rem 0 0; padding: 0; }
.checklist li { position: relative; padding-left: 32px; margin-bottom: 14px; color: var(--body); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand-light) url("../img/check.svg") center/12px no-repeat; border: 1px solid var(--brand-lighter);
}

/* ---------- Integrations & hardware ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; background: #fff;
  border: 1px solid var(--border); border-radius: 999px; box-shadow: var(--shadow-sm); font-weight: 600; color: var(--ink);
}
.chip img { height: 24px; width: 24px; object-fit: contain; }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: start; }
.pricing__card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px; box-shadow: var(--shadow-sm);
}
.pricing__card--highlight { border-color: var(--brand); box-shadow: var(--shadow-lg); }
.price { font-size: 3rem; font-weight: 800; color: var(--ink); letter-spacing: -.03em; }
.price span { font-size: 1rem; font-weight: 500; color: var(--muted); }
.ptable { width: 100%; border-collapse: collapse; margin-top: 8px; }
.ptable th, .ptable td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--border); }
.ptable th { color: var(--muted); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
.ptable th:last-child { text-align: right; }
.ptable td:last-child { text-align: right; font-weight: 700; color: var(--ink); }
.ptable tr:last-child td { border-bottom: 0; }

/* ---------- Testimonials ---------- */
.tcard {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; margin: 0;
}
.tcard .stars { color: #fdb022; letter-spacing: 3px; font-size: 1rem; margin-bottom: 14px; }
.tcard blockquote { margin: 0 0 20px; color: var(--ink); font-size: 1.05rem; line-height: 1.55; font-weight: 500; }
.tcard figcaption { margin-top: auto; }
.tcard figcaption strong { display: block; color: var(--ink); font-weight: 600; }
.tcard figcaption span { color: var(--muted); font-size: .92rem; }
.tcard figcaption a { color: inherit; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--border-strong); }
.tcard figcaption a:hover { color: var(--brand-dark); text-decoration-color: currentColor; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--bg-dark); color: #fff; border-radius: 24px; padding: 64px 40px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #d0d5dd; max-width: 560px; margin: 0 auto 1.75rem; font-size: 1.15rem; }
.cta-band .hero__cta { margin-top: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-dark); color: #c3cbd6; padding: 64px 0 40px; }
.site-footer a { color: #c3cbd6; }
.site-footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer__brand img { height: 26px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer__brand p { color: #98a2b3; max-width: 280px; font-size: .95rem; }
.footer h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer ul li { margin-bottom: 10px; font-size: .95rem; }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; color: #98a2b3; font-size: .9rem;
}

/* ---------- Legal pages ---------- */
.legal { padding: 64px 0 88px; }
.legal__wrap { max-width: 760px; margin: 0 auto; }
.legal__updated { color: var(--muted); font-size: .95rem; margin-bottom: 2.5rem; }
.legal h2 { font-size: 1.4rem; margin-top: 2.5rem; }
.legal h1 + p, .legal .legal__updated + p { margin-top: 0; }
.legal ul { padding-left: 1.25rem; }
.legal li { margin-bottom: .5rem; }
.legal .tldr {
  background: var(--brand-light); border: 1px solid var(--brand-lighter); border-radius: var(--radius);
  padding: 20px 24px; margin-bottom: 1.5rem;
}
.legal .tldr strong { color: var(--brand-dark); }
.legal a { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid--3 { grid-template-columns: 1fr; }
  .split, .pricing { grid-template-columns: 1fr; gap: 32px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .nav__links {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 4px; background: #fff; border-bottom: 1px solid var(--border); padding: 12px 24px 20px;
    box-shadow: var(--shadow-md); display: none;
  }
  .nav__links.open { display: flex; }
  .nav__links .btn { margin-top: 6px; }
  .nav__toggle { display: block; }
  .section { padding: 64px 0; }
}
@media (max-width: 520px) {
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-band { padding: 48px 24px; }
}
