/* BaadigeBook website. One stylesheet, no framework. Mobile first; light and dark follow the visitor's device. */

@font-face {
  font-family: Inter;
  src: url(/assets/fonts/inter/Inter-Regular.woff2?v=a0997781) format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url(/assets/fonts/inter/Inter-SemiBold.woff2?v=c3f86c9d) format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Merriweather;
  src: url(/assets/fonts/merriweather/Merriweather-Bold.woff2?v=9252ec35) format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  /* Brand: terracotta (main, and the tenant app), espresso brown (the owner app), cream */
  --terracotta: #b4532a;
  --espresso: #3e2116;
  --cream: #fff6ef;

  --bg: var(--cream);
  --surface: #fffdfb;
  --tint: #fbe7dc;
  --ink: #2a1710;
  --muted: #6a5046;
  --line: #e7d3c7;
  --accent: #a34a24;
  --button: var(--terracotta);
  --button-ink: #fff;
  --footer-bg: var(--espresso);
  --footer-ink: #f3e3d9;
  --footer-muted: #cdb3a6;
  --danger: #b3261e;
  --shadow: 0 1px 2px rgb(62 33 22 / 6%), 0 12px 32px rgb(62 33 22 / 10%);

  --serif: Merriweather, Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 68rem;
  --gutter: 1.25rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b110d;
    --surface: #251813;
    --tint: #33211a;
    --ink: #f6e9e1;
    --muted: #c9b2a6;
    --line: #48332a;
    --accent: #eb9a74;
    --button: #c7623a;
    --footer-bg: #130c09;
    --danger: #ffb4ab;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 12px 32px rgb(0 0 0 / 35%);
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  overflow-wrap: break-word;
}

img,
picture {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(1.9rem, 6.2vw, 3.1rem);
}
h2 {
  font-size: clamp(1.4rem, 4vw, 1.9rem);
}
h3 {
  font-size: 1.15rem;
}

p,
ul,
ol,
dl,
table,
pre {
  margin: 0 0 1.1em;
}

ul,
ol {
  padding-left: 1.3em;
}
li + li {
  margin-top: 0.35em;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}
a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

strong,
b {
  font-weight: 600;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: -999rem;
}
.skip:focus {
  left: var(--gutter);
  top: 0.5rem;
  z-index: 10;
  background: var(--surface);
  padding: 0.5rem 0.9rem;
  border-radius: 0.5rem;
}

/* ---- Header ---- */

.site-header {
  border-bottom: 1px solid var(--line);
}
.site-header__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  padding-block: 0.75rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font: 700 1.2rem/1 var(--serif);
  text-decoration: none;
}
.brand img {
  border-radius: 9px;
}
.site-nav {
  display: flex;
  gap: 0.25rem;
  margin-inline: -0.6rem;
}
.site-nav a {
  padding: 0.55rem 0.6rem;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 0.5rem;
  white-space: nowrap;
}
.site-nav a:hover {
  background: var(--tint);
}
.site-nav a[aria-current] {
  color: var(--accent);
}

/* ---- Sections ---- */

.section {
  padding-block: clamp(2.5rem, 7vw, 4.5rem);
}
.section--tint {
  background: var(--tint);
}
.section__head {
  max-width: 44rem;
  margin-bottom: 2rem;
}
.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 40rem;
}
.eyebrow {
  margin-bottom: 0.6rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.92rem;
}

/* ---- Hero ---- */

.hero {
  padding-block: clamp(2rem, 6vw, 4rem) 0;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  gap: 2.5rem;
  align-items: end;
}
.hero__text {
  padding-bottom: clamp(0rem, 4vw, 4rem);
}
.hero__phones {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: -4.5rem;
}
.hero__phones .phone {
  width: 46%;
  max-width: 250px;
}
.hero__phones .phone:last-child {
  margin-top: 2.5rem;
}
.app-hero {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding-block: clamp(2rem, 6vw, 4rem);
}
.app-hero .phone {
  width: 62vw;
  max-width: 260px;
  margin-inline: auto;
}
.app-title {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.2rem;
}
.app-title img {
  border-radius: 22%;
  box-shadow: var(--shadow);
}
.app-title p {
  margin: 0;
  font: 700 1.15rem/1.3 var(--serif);
}
.app-title span {
  display: block;
  color: var(--muted);
  font: 400 0.92rem/1.3 var(--sans);
}

/* ---- Phone frame ---- */

.phone {
  flex: none;
  border: 7px solid var(--espresso);
  border-radius: 2rem;
  overflow: hidden;
  background: var(--espresso);
  box-shadow: var(--shadow);
}
.phone img {
  width: 100%;
  border-radius: 1.5rem;
}
@media (prefers-color-scheme: dark) {
  .phone {
    border-color: #5a4035;
    background: #5a4035;
  }
}

/* ---- Buttons and store buttons ---- */

.button {
  display: inline-block;
  padding: 0.8rem 1.3rem;
  border: 2px solid var(--button);
  border-radius: 999px;
  background: var(--button);
  color: var(--button-ink);
  font: 600 1rem/1.3 var(--sans);
  text-decoration: none;
  cursor: pointer;
}
.button:hover {
  filter: brightness(0.93);
}
.button--plain {
  background: transparent;
  color: var(--accent);
  border-color: currentcolor;
}
.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.1em;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.1em;
}
.store {
  display: inline-block;
  min-width: 10.5rem;
  padding: 0.55rem 1.1rem 0.65rem;
  border-radius: 0.8rem;
  background: var(--espresso);
  color: #fff6ef;
  font: 600 1.05rem/1.25 var(--sans);
  text-decoration: none;
}
.store small {
  display: block;
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  opacity: 0.85;
}
.store--soon {
  background: transparent;
  color: var(--muted);
  border: 1.5px dashed var(--line);
}

/* ---- Cards ---- */

.cards {
  display: grid;
  gap: 1.25rem;
}
.card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--surface);
}
.card > :last-child {
  margin-bottom: 0;
}
.card--owner {
  border-top: 5px solid var(--espresso);
}
.card--tenant {
  border-top: 5px solid var(--terracotta);
}
@media (prefers-color-scheme: dark) {
  .card--owner {
    border-top-color: #8a5f4d;
  }
}
.card__more {
  font-weight: 600;
}
.cards + p {
  margin-top: 1.25rem;
}

code {
  font: 0.88em/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-wrap: anywhere;
}

.ticks {
  list-style: none;
  padding: 0;
}
.ticks li {
  position: relative;
  padding-left: 1.6rem;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.5em;
  width: 0.8rem;
  height: 0.42rem;
  border-left: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}
.steps li {
  counter-increment: step;
  margin: 0;
  padding: 1.25rem 1.25rem 1.25rem 4rem;
  position: relative;
  border-radius: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1.1rem;
  top: 1.15rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--button);
  color: var(--button-ink);
  font: 700 1rem/2rem var(--serif);
  text-align: center;
}
.steps h3 {
  margin-bottom: 0.3em;
}
.steps p {
  margin: 0;
  color: var(--muted);
}

/* ---- Feature rows with a screenshot ---- */

.feature {
  display: grid;
  gap: 1.75rem;
  align-items: center;
  padding-block: 2rem;
}
.feature {
  max-width: 56rem;
}
.feature + .feature {
  border-top: 1px solid var(--line);
}
.feature .phone {
  width: 62vw;
  max-width: 260px;
  margin-inline: auto;
}
.feature__text > :last-child {
  margin-bottom: 0;
}

/* ---- Notices ---- */

.notice {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--accent);
  border-radius: 0.5rem;
  background: var(--tint);
}
.notice > :last-child {
  margin-bottom: 0;
}
.notice--draft {
  border-left-color: var(--danger);
}

/* ---- Long reading pages: privacy, terms, deletion, support ---- */

.doc {
  max-width: 46rem;
  padding-block: clamp(2rem, 6vw, 3.5rem);
}
.doc h2 {
  margin-top: 2.2em;
  padding-top: 0.2em;
  font-size: clamp(1.25rem, 3.6vw, 1.5rem);
}
.doc h3 {
  margin-top: 1.8em;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: 0;
}
.doc__meta {
  color: var(--muted);
}
.toc {
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--surface);
}
.toc p {
  margin-bottom: 0.5em;
  font-weight: 600;
}
.toc ol {
  margin: 0;
  columns: 16rem 2;
  column-gap: 2rem;
}
.toc li {
  break-inside: avoid;
}

.table-scroll {
  overflow-x: auto;
  margin-bottom: 1.1em;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--surface);
}
table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-size: 0.95rem;
}
th,
td {
  padding: 0.7rem 0.9rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
tr:last-child > * {
  border-bottom: 0;
}
thead th {
  background: var(--tint);
  font-weight: 600;
}
tbody th {
  font-weight: 600;
  min-width: 8.5rem;
}

/* A table of long text reads as a list of blocks on a phone */
@media (max-width: 40rem) {
  .table-scroll--stack thead {
    position: absolute;
    left: -999rem;
  }
  .table-scroll--stack th,
  .table-scroll--stack td {
    display: block;
  }
  .table-scroll--stack tbody th {
    padding-bottom: 0;
    border-bottom: 0;
  }
  .table-scroll--stack tbody td {
    padding-top: 0.3rem;
  }
  .table-scroll--stack tbody td + td {
    border-bottom: 0;
    color: var(--muted);
  }
  .table-scroll--stack tbody tr {
    display: block;
    border-bottom: 1px solid var(--line);
  }
  .table-scroll--stack tbody tr:last-child {
    border-bottom: 0;
  }
  .table-scroll--stack tbody tr > * {
    border-bottom: 0;
  }
}

address {
  font-style: normal;
  margin-bottom: 1.1em;
}

pre.request {
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--surface);
  font: 0.9rem/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
}
.copied {
  margin-left: 0.25rem;
  color: var(--muted);
  font-size: 0.92rem;
}

details {
  border-bottom: 1px solid var(--line);
}
:not(details) + details {
  border-top: 1px solid var(--line);
}
summary {
  padding: 0.95rem 2rem 0.95rem 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: "";
  position: absolute;
  right: 0.4rem;
  top: 1.35rem;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
}
details[open] summary::after {
  transform: rotate(-135deg);
  top: 1.6rem;
}
details > :not(summary) {
  max-width: 40rem;
}

/* ---- Footer ---- */

.site-footer {
  margin-top: clamp(2.5rem, 7vw, 4.5rem);
  padding-block: 2.5rem 2rem;
  background: var(--footer-bg);
  color: var(--footer-muted);
  font-size: 0.95rem;
}
.site-footer a {
  color: var(--footer-ink);
}
.site-footer__grid {
  display: grid;
  gap: 1.75rem;
}
.site-footer__name {
  color: var(--footer-ink);
  font: 700 1.2rem/1.3 var(--serif);
}
.site-footer__title {
  margin-bottom: 0.4rem;
  color: var(--footer-ink);
  font-weight: 600;
}
.site-footer nav a {
  display: block;
  padding-block: 0.3rem;
}
.site-footer__small {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(255 246 239 / 16%);
  font-size: 0.88rem;
}
.site-footer__small p:last-child {
  margin-bottom: 0;
}

/* ---- Wider screens ---- */

@media (min-width: 48rem) {
  :root {
    --gutter: 2rem;
  }
  .hero__grid {
    grid-template-columns: 1.1fr 1fr;
  }
  .hero__phones {
    justify-content: flex-end;
  }
  .app-hero {
    grid-template-columns: 1.3fr 1fr;
  }
  .app-hero .phone,
  .feature .phone {
    width: 260px;
  }
  .cards--2 {
    grid-template-columns: 1fr 1fr;
  }
  .cards--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .steps {
    grid-template-columns: 1fr 1fr;
  }
  .feature {
    grid-template-columns: 1fr 260px;
    gap: 3.5rem;
    padding-block: 3rem;
  }
  .feature:nth-of-type(even) {
    grid-template-columns: 260px 1fr;
  }
  .feature:nth-of-type(even) .phone {
    order: -1;
  }
  .site-footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media print {
  .site-header,
  .site-footer,
  .skip {
    display: none;
  }
  body {
    background: #fff;
    color: #000;
  }
}
