/* Doorbook website: one stylesheet for every page. Colors follow the app's "Ledger teal" theme. */

:root {
  --teal: #006a6a;
  --teal-strong: #004f4f;
  --teal-soft: #e3f4f2;
  --mint: #c9f1ee;
  --bg: #fbfdfc;
  --surface: #ffffff;
  --surface-alt: #f1f7f6;
  --text: #13201f;
  --text-muted: #4a5c5a;
  --border: #d6e3e1;
  --shadow: 0 1px 2px rgba(0, 40, 40, 0.06), 0 8px 24px rgba(0, 40, 40, 0.08);
  --radius: 16px;
  --max: 1080px;
  --prose: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --teal: #6fd6d2;
    --teal-strong: #9ce8e4;
    --teal-soft: #12302f;
    --mint: #1d4644;
    --bg: #0d1514;
    --surface: #131d1c;
    --surface-alt: #182423;
    --text: #e3eeec;
    --text-muted: #a3b6b3;
    --border: #263634;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--teal); text-underline-offset: 2px; }
a:hover { color: var(--teal-strong); }

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

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

/* Header and footer */

.site-header { border-bottom: 1px solid var(--border); background: var(--surface); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -0.3px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; gap: 20px; font-size: 15px; }
.nav a { color: var(--text-muted); text-decoration: none; font-weight: 600; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--teal); }

.site-footer { border-top: 1px solid var(--border); margin-top: 72px; padding: 28px 0 40px; color: var(--text-muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--text-muted); }

/* Landing page */

.hero { padding: 64px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(36px, 6vw, 56px); line-height: 1.08; letter-spacing: -1.2px; margin: 0 0 18px; }
.hero p.lead { font-size: 20px; color: var(--text-muted); margin: 0 0 28px; max-width: 520px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: var(--teal); background: var(--teal-soft); padding: 5px 12px; border-radius: 99px; margin-bottom: 18px; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; flex-direction: column; justify-content: center; min-width: 190px; height: 58px; padding: 0 20px;
  border-radius: 12px; background: #000; color: #fff; text-decoration: none; line-height: 1.15;
}
.store:hover { color: #fff; background: #1b1b1b; }
.store small { font-size: 11px; opacity: 0.85; letter-spacing: 0.2px; }
.store strong { font-size: 19px; font-weight: 600; }
.store.is-soon { background: var(--surface-alt); color: var(--text-muted); border: 1px dashed var(--border); cursor: default; }
@media (prefers-color-scheme: dark) { .store { background: #fff; color: #000; } .store:hover { background: #e8e8e8; color: #000; } }
.stores-note { font-size: 14px; color: var(--text-muted); margin-top: 12px; }

.phones { position: relative; display: flex; justify-content: center; }
.phone {
  width: 260px; border-radius: 34px; overflow: hidden; border: 8px solid #111; background: #111; box-shadow: var(--shadow);
}
.phone + .phone { margin-left: -70px; margin-top: 60px; transform: rotate(4deg); }
.phones .phone:first-child { transform: rotate(-4deg); z-index: 1; }

.section { padding: 56px 0; }
.section h2 { font-size: clamp(28px, 4vw, 36px); letter-spacing: -0.6px; margin: 0 0 12px; }
.section p.sub { color: var(--text-muted); font-size: 18px; margin: 0 0 32px; max-width: 640px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.feature h3 { margin: 0 0 6px; font-size: 18px; }
.feature p { margin: 0; color: var(--text-muted); font-size: 15.5px; }
.feature .icon { width: 40px; height: 40px; border-radius: 10px; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; margin-bottom: 14px; }
.feature .icon svg { width: 22px; height: 22px; }

.band { background: var(--teal); color: #fff; border-radius: 24px; padding: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.band h2 { color: #fff; }
.band p { color: var(--mint); margin: 0; }
.band ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.band li { display: flex; gap: 10px; align-items: flex-start; color: #fff; }
.band li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: rgba(255, 255, 255, 0.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 13px no-repeat; }
@media (prefers-color-scheme: dark) { .band { background: var(--teal-soft); } .band li, .band h2 { color: var(--text); } .band p { color: var(--text-muted); } }

.cta { text-align: center; }
.cta .stores { justify-content: center; }

/* Prose pages: privacy, terms, support */

.page { padding: 48px 0 0; }
.prose { max-width: var(--prose); margin: 0 auto; padding: 0 20px; }
.prose h1 { font-size: clamp(32px, 5vw, 42px); letter-spacing: -0.8px; line-height: 1.15; margin: 0 0 8px; }
.prose .meta { color: var(--text-muted); font-size: 15px; margin: 0 0 32px; }
.prose h2 { font-size: 22px; letter-spacing: -0.2px; margin: 40px 0 10px; }
.prose h3 { font-size: 18px; margin: 28px 0 6px; }
.prose p, .prose li { color: var(--text); }
.prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose strong { font-weight: 650; }
.summary { background: var(--teal-soft); border-radius: var(--radius); padding: 20px 24px; margin: 0 0 8px; }
.summary p { margin: 0 0 8px; font-weight: 600; }
.summary ul { margin: 0; }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; margin: 24px 0; box-shadow: var(--shadow); }
.contact-card p { margin: 0 0 6px; }
.contact-card a.button { display: inline-block; margin-top: 10px; background: var(--teal); color: #fff; padding: 10px 18px; border-radius: 10px; text-decoration: none; font-weight: 600; }
@media (prefers-color-scheme: dark) { .contact-card a.button { color: #062221; } }

details.faq { border-bottom: 1px solid var(--border); padding: 14px 0; }
details.faq summary { cursor: pointer; font-weight: 650; font-size: 17.5px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--teal); font-size: 22px; line-height: 1; }
details.faq[open] summary::after { content: "–"; }
details.faq p, details.faq ol, details.faq ul { color: var(--text-muted); margin: 10px 0 0; }

/* Phone width */

@media (max-width: 860px) {
  .hero { padding: 40px 0 24px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .phone { width: 230px; border-width: 6px; border-radius: 30px; }
  .phones .phone:first-child { transform: none; }
  .phone + .phone { display: none; }
  .features { grid-template-columns: 1fr; }
  .band { grid-template-columns: 1fr; padding: 28px 24px; }
}

@media (max-width: 520px) {
  .nav { gap: 14px; font-size: 14px; }
  .nav .hide-sm { display: none; }
  .store { flex: 1 1 100%; }
}
