/* BiteFocus public documents — stable, self-contained styling for App Store URLs. */
:root {
  --paper:#FBF6EC; --paper-deep:#F0E9DC; --ink:#171714; --muted:#686257;
  --coral:#CF382D; --coral-deep:#A92C24; --sage:#4F7F5C; --sage-wash:#E4EFE0;
  --line:#D9D1C3; --serif:'IBM Plex Serif', Georgia, 'Times New Roman', serif;
  --sans:'IBM Plex Sans', -apple-system, 'Segoe UI', sans-serif;
  --logo:'Fraunces', Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans);
  font-size: 16.5px; line-height: 1.68; -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
::selection { background: var(--coral); color: #fff; }

.doc-header {
  position: sticky; top: 0; z-index: 50; background: rgba(251,246,236,.95);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.doc-header .bar {
  max-width: 880px; height: 66px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.logo {
  color: var(--ink); font-family: var(--logo); font-size: 24px; font-weight: 560;
  letter-spacing: -.01em; text-decoration: none; white-space: nowrap;
}
.logo .x { color: #BC5327; position: relative; top: -.05em; }
.product {
  display: flex; align-items: center; gap: 8px; color: var(--muted);
  font-family: var(--serif); font-size: 15px; font-weight: 600;
}
.product::before { content: '/'; color: var(--line); }
.product-icon { width: 24px; height: 24px; border-radius: 7px; flex: 0 0 auto; }
.doc-tabs {
  max-width: 880px; margin: 0 auto; padding: 14px 24px 0;
  display: flex; gap: 22px; flex-wrap: wrap;
}
.doc-tabs a {
  padding-bottom: 7px; border-bottom: 2px solid transparent; color: var(--muted);
  font-size: 13px; font-weight: 600; letter-spacing: .04em; text-decoration: none;
}
.doc-tabs a:hover { color: var(--coral-deep); }
.doc-tabs a.active { color: var(--ink); border-bottom-color: var(--coral); }

.doc { max-width: 880px; margin: 0 auto; padding: 44px 24px 96px; }
.doc h1, .doc h2, .doc h3 { font-family: var(--serif); line-height: 1.2; letter-spacing: -.01em; }
.doc h1 { margin: 6px 0 8px; font-size: clamp(2.15rem, 5vw, 3rem); font-weight: 600; }
.doc h2 {
  margin: 2.8rem 0 .75rem; padding-top: 1.1rem; border-top: 1px solid var(--line);
  font-size: 1.55rem; font-weight: 600;
}
.doc h3 { margin: 1.8rem 0 .45rem; font-size: 1.18rem; font-weight: 600; }
.doc p { margin: 0 0 1rem; }
.doc h1 + p { color: var(--muted); font-size: 1.12rem; }
.doc ul, .doc ol { margin: 0 0 1rem; padding-left: 1.35rem; }
.doc li { margin: .35rem 0; }
.doc a { color: var(--coral-deep); text-underline-offset: 2px; text-decoration-color: var(--coral); }
.doc a:hover { color: var(--ink); }
.doc strong { font-weight: 600; }
.doc hr { margin: 2.4rem 0; border: 0; border-top: 1px solid var(--line); }
.lede {
  margin: 1.4rem 0 2rem; padding: 18px 20px; border-left: 4px solid var(--sage);
  border-radius: 0 8px 8px 0; background: var(--sage-wash);
}
.lede p:last-child { margin-bottom: 0; }
.language-divider {
  margin-top: 4rem; padding: 12px 16px; border-radius: 999px; background: var(--paper-deep);
  color: var(--sage); font-size: 12px; font-weight: 600; letter-spacing: .14em;
  text-align: center; text-transform: uppercase;
}
.support-card {
  margin: 1.2rem 0; padding: 20px; border: 1px solid var(--line); border-radius: 14px;
  background: rgba(255,255,255,.42);
}
.support-card h3 { margin-top: 0; }
.button {
  display: inline-block; margin-top: 4px; padding: 12px 18px; border-radius: 999px;
  background: var(--coral); color: #fff !important; font-weight: 600; text-decoration: none;
}
.button:hover { background: var(--coral-deep); }

.doc-footer { border-top: 1px solid var(--line); background: var(--paper-deep); }
.doc-footer .inner {
  max-width: 880px; margin: 0 auto; padding: 28px 24px; display: flex;
  justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 13.5px;
}
.doc-footer a { color: var(--muted); text-decoration: none; }
.doc-footer a:hover { color: var(--ink); }

@media (max-width: 520px) {
  .doc-header .bar { padding: 0 18px; }
  .doc-tabs { padding-left: 18px; padding-right: 18px; }
  .doc { padding: 34px 18px 72px; }
  .product::before { display: none; }
}
@media print {
  .doc-header, .doc-tabs, .doc-footer { display: none; }
  body { background: #fff; }
}
