/* ============================================================
   MyPGRent — design tokens
   Blue theme matched to the app's own screenshots: a confident
   product blue for primary actions, with the app's own status
   colors (collected/green, pending/amber, urgent/red) used only
   where they mean the same thing here.
   ============================================================ */

:root {
  --ink: #101828;
  --ink-soft: #4b5768;
  --paper: #f4f7fc;
  --paper-raised: #ffffff;
  --blue: #2955e0;
  --blue-deep: #1c3aa6;
  --blue-tint: #e9eefd;
  --green: #0f9d63;
  --amber: #c2830f;
  --red: #d3453f;
  --line: #dfe4ee;
  --line-soft: #e9ecf3;
  --white: #ffffff;

  --display: "Plus Jakarta Sans", "IBM Plex Sans", -apple-system, sans-serif;
  --sans: "IBM Plex Sans", -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  --max: 1120px;
  --pad: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }

a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--blue-deep);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2.3rem, 4.8vw, 3.4rem); line-height: 1.08; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); line-height: 1.18; }
h3 { font-size: 1.2rem; line-height: 1.3; }

p { margin: 0; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 247, 252, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
}

.brand .brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: block;
}

nav.site-nav { display: flex; gap: clamp(16px, 2vw, 32px); align-items: center; }

nav.site-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.15s ease, color 0.15s ease;
}

nav.site-nav a:hover { color: var(--ink); border-color: var(--blue); }

/* ---------- hero ---------- */

.hero { padding-top: clamp(40px, 7vw, 84px); padding-bottom: clamp(24px, 5vw, 56px); }

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.hero h1 { max-width: 15ch; }

.hero .lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-top: 18px;
}

.hero-ctas { margin-top: 30px; }

.badges { display: flex; gap: 12px; flex-wrap: wrap; }

.badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  border: 1px solid var(--ink);
}

.badge-btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); }

.badge-btn svg { width: 22px; height: 22px; flex-shrink: 0; }

.badge-btn .badge-text { display: flex; flex-direction: column; line-height: 1.15; }
.badge-btn .badge-text .small { font-size: 0.66rem; opacity: 0.85; }
.badge-btn .badge-text .big { font-size: 0.98rem; font-weight: 600; font-family: var(--display); }

.hero-note {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.hero-shot {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(16, 24, 40, 0.35);
  max-width: 340px;
  margin: 0 auto;
}

/* ---------- generic section headings ---------- */

.section-intro { padding: clamp(24px, 5vw, 48px) 0 8px; }
.section-intro h2 { max-width: 22ch; }
.section-intro .sub { margin-top: 14px; max-width: 62ch; color: var(--ink-soft); font-size: 1.03rem; }

/* ---------- showcase (alternating screenshot rows) ---------- */

.showcase { padding: clamp(20px, 4vw, 32px) 0; }

.showcase-row {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  padding: clamp(36px, 6vw, 56px) 0;
  border-bottom: 1px solid var(--line);
}

.showcase-row:last-child { border-bottom: none; }

.showcase-row.reverse { grid-template-columns: 1.15fr 0.85fr; }
.showcase-row.reverse .showcase-shot { order: 2; }
.showcase-row.reverse .showcase-text { order: 1; }

.showcase-shot {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 48px -28px rgba(16, 24, 40, 0.32);
  max-width: 280px;
  margin: 0 auto;
}

.showcase-text .tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue-deep);
  background: var(--blue-tint);
  padding: 4px 11px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.showcase-text h3 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); }

.showcase-text p {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 1rem;
  max-width: 46ch;
}

.showcase-text ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.showcase-text li {
  font-size: 0.94rem;
  color: var(--ink-soft);
  padding-left: 20px;
  position: relative;
}

.showcase-text li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}

/* ---------- mini feature list ---------- */

.mini-list { padding: clamp(32px, 5vw, 56px) 0; background: var(--paper-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.mini-list h2 { max-width: 20ch; }

.mini-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.mini-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  background: var(--paper);
}

.mini-card h4 { font-family: var(--display); font-weight: 600; font-size: 1rem; margin: 0 0 8px; }
.mini-card p { font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- trust note ---------- */

.trust { padding: clamp(40px, 6vw, 72px) 0; }

.trust .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}

.trust p { color: var(--ink-soft); font-size: 1.02rem; }

.trust .note-list { border-left: 2px solid var(--blue); padding-left: 20px; display: flex; flex-direction: column; gap: 14px; }
.trust .note-list div span { display: block; font-size: 0.85rem; color: var(--ink-soft); margin-top: 2px; }

/* ---------- footer ---------- */

footer.site-footer { border-top: 1px solid var(--line); padding: 36px 0 44px; }

footer.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

footer.site-footer .badges { transform: scale(0.9); transform-origin: left center; }

footer.site-footer nav { display: flex; gap: 24px; font-size: 0.92rem; }
footer.site-footer nav a { text-decoration: none; color: var(--ink-soft); }
footer.site-footer nav a:hover { color: var(--ink); }
footer.site-footer .copy { font-size: 0.85rem; color: var(--ink-soft); }

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 28px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

/* ---------- mobile nav ---------- */

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 780px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-shot { order: -1; }
  .showcase-row, .showcase-row.reverse { grid-template-columns: 1fr; }
  .showcase-row.reverse .showcase-shot, .showcase-row.reverse .showcase-text { order: unset; }
  .mini-grid { grid-template-columns: 1fr; }
  .trust .container { grid-template-columns: 1fr; }
  .footer-top, footer.site-footer .container { flex-direction: column; align-items: flex-start; }

  nav.site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 8px var(--pad) 20px;
    display: none;
  }
  nav.site-nav.open { display: flex; }
  .nav-toggle { display: inline-flex; }
}

/* ============================================================
   Document page (privacy policy)
   ============================================================ */

.doc-hero { padding: clamp(40px, 6vw, 72px) 0 24px; border-bottom: 1px solid var(--line); }
.doc-hero .updated { font-family: var(--mono); font-size: 0.85rem; color: var(--ink-soft); margin-top: 14px; }
.doc-hero .lede { margin-top: 18px; max-width: 68ch; color: var(--ink-soft); font-size: 1.05rem; }

/* .doc-body {
  padding: clamp(32px, 5vw, 56px) 0 clamp(56px, 8vw, 96px);
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
} */
.doc-body {
  padding: clamp(32px, 5vw, 56px) 0 clamp(56px, 8vw, 96px);
}

.doc-body .container {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.doc-toc {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-right: 1px solid var(--line);
  padding-right: 20px;
}

.doc-toc a { text-decoration: none; font-size: 0.88rem; color: var(--ink-soft); }
.doc-toc a:hover { color: var(--blue-deep); }

.doc-content section { padding-bottom: 30px; margin-bottom: 30px; border-bottom: 1px solid var(--line-soft); max-width: 72ch; }
.doc-content section:last-child { border-bottom: none; }
.doc-content h2 { font-size: 1.3rem; margin-bottom: 12px; }
.doc-content p, .doc-content li { color: var(--ink-soft); font-size: 0.98rem; margin-bottom: 12px; }
.doc-content ul { padding-left: 20px; margin: 0 0 12px; }
.doc-content strong { color: var(--ink); }

.fill-in {
  background: rgba(41, 85, 224, 0.08);
  border: 1px dashed var(--blue);
  padding: 1px 6px;
  border-radius: 3px;
  color: var(--blue-deep);
  font-family: var(--mono);
  font-size: 0.88em;
}

@media (max-width: 780px) {
  /* .doc-body { grid-template-columns: 1fr; } */
  .doc-body .container { grid-template-columns: 1fr; }
  .doc-toc {
    position: static;
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding-right: 0;
    padding-bottom: 16px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 14px;
  }
}
