/* ---------------------------------------------------------------------------
   TenantPass marketing site.

   Hand-written CSS, not Tailwind: this is one page, and a build-time CSS
   framework would cost a toolchain to save nothing. The palette and type are
   TenantOS's, defined once in apps/tenantos/src/index.css — keep them in step
   so the site and the app do not drift into looking like two products.

   Fonts are self-hosted. Loading them from Google would send every visitor's
   IP to a third party before the page has said a word about privacy, which is
   precisely the trade this product tells tenants it does not make.
   --------------------------------------------------------------------------- */

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/space-grotesk-variable-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/inter-400-800-normal-latin.woff2") format("woff2");
}

:root {
  --ink: #1b2430;
  --warm: #faf7f2;
  --card: #ffffff;
  --green: #1e9e6a;
  --amber: #d98e04;
  --coral: #e5533d;
  --teal: #1f8a8a;
  --teal-dark: #176b6b;
  --muted: #6b7280;
  --line: #e7e2d9;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(27, 36, 48, .05), 0 8px 24px rgba(27, 36, 48, .06);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--warm);
  color: var(--ink);
  font-family: Inter, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Space Grotesk", Inter, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}

p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

a { color: var(--teal); }

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}
.narrow { max-width: 720px; }

/* Clip rather than shunt off-canvas: `left:-9999px` widens the scrollable
   area, which showed up as a horizontal scrollbar on a 390px phone. */
.skip {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus {
  position: fixed;
  left: 12px; top: 12px;
  width: auto; height: auto;
  margin: 0; padding: 10px 14px;
  overflow: visible;
  clip: auto;
  clip-path: none;
  z-index: 50;
  background: var(--card);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

/* ── Nav ─────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 247, 242, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark { width: 28px; height: 28px; display: block; }
.brand-sm { font-size: 17px; }

.nav-links {
  display: none;
  gap: 24px;
  margin-left: auto;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--ink); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.nav-links + .nav-cta { margin-left: 24px; }

@media (min-width: 860px) {
  .nav-links { display: flex; }
}

/* A 390px phone cannot hold brand + two full-width CTAs. Both buttons stay —
   a returning tenant needs "Log in" as much as a new one needs "Sign up" —
   so the label sheds a word and the padding tightens instead. */
@media (max-width: 599px) {
  .nav-cta { gap: 6px; }
  .nav-cta .btn { padding: 9px 12px; font-size: 14.5px; }
  .cta-word { display: none; }
  .brand { font-size: 17.5px; }
  .brand-mark { width: 25px; height: 25px; }
}

/* ── Buttons ─────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  font-weight: 600;
  font-size: 15px;
  padding: 10px 17px;
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-lg { font-size: 16.5px; padding: 14px 26px; border-radius: 12px; }

.btn-solid { background: var(--teal); color: #fff; }
.btn-solid:hover { background: var(--teal-dark); }

.btn-outline {
  background: var(--card);
  color: var(--ink);
  border-color: var(--line);
}
.btn-outline:hover { border-color: var(--muted); }

.btn-ghost { color: var(--ink); }
.btn-ghost:hover { background: rgba(27, 36, 48, .06); }

.btn:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* ── Hero ────────────────────────────────────────────── */

.hero { padding: 64px 0 48px; }
.hero-inner {
  display: grid;
  gap: 44px;
  align-items: center;
}
@media (min-width: 960px) {
  .hero { padding: 92px 0 72px; }
  .hero-inner { grid-template-columns: 1.05fr .95fr; gap: 56px; }
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(31, 138, 138, .10);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(38px, 7vw, 60px);
  font-weight: 700;
  margin-bottom: 22px;
}
.accent { color: var(--teal); }

.lede {
  font-size: 18.5px;
  color: #3d4654;
  max-width: 34em;
  margin-bottom: 30px;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-cta.center { justify-content: center; }

.hero-note {
  margin-top: 16px;
  font-size: 14.5px;
  color: var(--muted);
}

/* Illustrative panel — static, no invented statistics. */
.hero-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 22px;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.panel-title {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-weight: 700;
  font-size: 16px;
}
.chip {
  font-size: 12.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}
.chip-green { background: rgba(30, 158, 106, .12); color: #14724c; }

.panel-list { padding: 14px 0 4px; }
.panel-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  font-size: 15px;
}
.panel-list em { color: var(--muted); font-style: normal; margin-left: auto; font-size: 14px; }

.dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  flex: none;
}
.dot-green { background: var(--green); }
.dot-amber { background: var(--amber); }
.dot-coral { background: var(--coral); }

.panel-foot {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.panel-foot .dot { margin-top: 7px; }
.panel-foot strong { display: block; }
.panel-sub { color: var(--muted); font-size: 13.5px; }

/* ── Trust strip ─────────────────────────────────────── */

.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--card);
}
.strip-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding-top: 26px;
  padding-bottom: 26px;
}
@media (min-width: 860px) {
  .strip-inner { grid-template-columns: repeat(4, 1fr); }
}
.strip-inner div { display: flex; flex-direction: column; gap: 2px; }
.strip-inner strong { font-size: 15.5px; }
.strip-inner span { font-size: 14px; color: var(--muted); }

/* ── Sections ────────────────────────────────────────── */

.section { padding: 72px 0; }
.section-warm { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section h2 {
  font-size: clamp(27px, 4vw, 36px);
  font-weight: 700;
  margin-bottom: 14px;
}
.section-lede {
  color: var(--muted);
  font-size: 17.5px;
  max-width: 44em;
  margin-bottom: 38px;
}

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.section-warm .card { background: var(--warm); }
.card h3 {
  font-size: 18.5px;
  font-weight: 700;
  margin-bottom: 9px;
}
.card p { color: #3d4654; font-size: 15.5px; }

.prose { margin-bottom: 18px; color: #3d4654; }
.prose:last-child { margin-bottom: 0; }

.ticks { margin: 26px 0 0; }
.ticks li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  color: #3d4654;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 8px; height: 14px;
  border: solid var(--green);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) translateY(-3px);
}
.ticks strong { color: var(--ink); }

.fineprint {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--muted);
}

/* ── FAQ ─────────────────────────────────────────────── */

details {
  background: var(--warm);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 12px;
}
.section-warm details { background: var(--card); }
summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16.5px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  font-size: 22px;
  color: var(--teal);
  line-height: 1;
  flex: none;
}
details[open] summary::after { content: "\2212"; }
details p {
  margin-top: 11px;
  color: #3d4654;
  font-size: 15.5px;
}

/* ── Closer ──────────────────────────────────────────── */

.closer { padding: 78px 0; }
.closer-inner { text-align: center; }
.closer h2 {
  font-size: clamp(27px, 4vw, 36px);
  font-weight: 700;
  margin-bottom: 14px;
}
.closer p {
  color: var(--muted);
  font-size: 17.5px;
  margin: 0 auto 30px;
  max-width: 34em;
}

/* ── Footer ──────────────────────────────────────────── */

.footer {
  background: var(--ink);
  color: #cfd6df;
  padding: 44px 0 30px;
}
.footer .brand { color: #fff; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-note {
  margin-top: 10px;
  font-size: 14.5px;
  color: #9aa5b4;
  max-width: 30em;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: #cfd6df; text-decoration: none; font-size: 15px; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-legal {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.footer-legal p {
  font-size: 13.5px;
  color: #8d98a7;
  max-width: 56em;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
