/* Inner pages — Everfit light chrome over live Cafeity content */
.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: #0a0a0b;
  color: #fff;
  padding: 8px 14px;
  z-index: 200;
}
.skip:focus { left: 12px; top: 12px; }

.inner .page {
  background: var(--bg);
}
.page > .section:first-of-type:not(.section--wiki) {
  background: linear-gradient(165deg, #e6deff 0%, #eee9ff 32%, #fdfcff 100%);
}

.page .wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.page .section { padding: 48px 0 72px; }
.page .section--tight { padding-top: 8px; }
.page .stack { display: flex; flex-direction: column; gap: 14px; }
.page .stack-lg { display: flex; flex-direction: column; gap: 28px; }
.page .stack-sm { display: flex; flex-direction: column; gap: 8px; }

.crumbs {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
}
.crumbs .wrap { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.crumbs a { color: var(--ink-muted); }
.crumbs a:hover { color: var(--violet); }

.page .eyebrow {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--violet);
}
.page .h1, .page h1.h1, .page h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.12;
  margin: 0;
}
.page .h2, .page h2.h2 {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  letter-spacing: -0.03em;
  font-weight: 800;
}
.page .h3, .page h2.h3, .page h3 {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.page .lede {
  font-size: 1.125rem;
  color: var(--ink-muted);
  max-width: 40rem;
  line-height: 1.6;
}
.page .lede.center, .page .center { text-align: center; margin-left: auto; margin-right: auto; }
.page .muted { color: var(--ink-muted); line-height: 1.65; }
.page .fine { font-size: 13px; color: var(--ink-soft); }
.page .center .lede { margin-left: auto; margin-right: auto; }

.page .card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
}
.page .card--wash, .page .legal-summary {
  background: var(--bg-soft);
  border-color: transparent;
}
.page .grid { display: grid; gap: 16px; }
.page .g3 { grid-template-columns: repeat(3, 1fr); }
.page .g4 { grid-template-columns: repeat(4, 1fr); }
.page .split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.page .idx-list { display: grid; gap: 12px; }
.page .idx-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 22px 26px;
  border-left: 4px solid var(--accent, var(--lilac));
}
.page .idx-item a {
  font-weight: 700;
  font-size: 1.05rem;
  display: inline-block;
  margin-bottom: 6px;
}
.page .idx-item a:hover { color: var(--violet); }
.page .idx-item p { color: var(--ink-muted); font-size: 0.95rem; }
.page .idx-list--art { grid-template-columns: repeat(2, 1fr); }
.page .idx-art {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 12px;
  background: #eee9ff;
}

.page .faq { display: flex; flex-direction: column; gap: 10px; }
.page .faq details {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px 20px;
}
.page .faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 16px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.page .faq summary::-webkit-details-marker { display: none; }
.page .faq summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--ink-soft);
}
.page .faq details[open] summary::after { content: "−"; }
.page .faq .answer, .page .faq p {
  padding: 0 0 18px;
  color: var(--ink-muted);
}

.page .btn--primary,
.page a.btn--primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0b;
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 12px 22px;
  font-weight: 600;
  font-size: 14px;
}
.page .btn--primary:hover { background: #1a1a1d; }

.page .calc { display: flex; flex-direction: column; gap: 16px; }
.page .form-row { display: flex; flex-wrap: wrap; gap: 14px; }
.page .field { display: flex; flex-direction: column; gap: 6px; min-width: 160px; flex: 1; }
.page label { font-size: 13px; font-weight: 600; color: var(--ink-muted); }
.page input, .page select, .page textarea {
  font: inherit;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  color: var(--ink);
}
.page input:focus, .page select:focus, .page textarea:focus {
  outline: 2px solid rgba(124, 58, 237, 0.35);
  border-color: var(--violet);
}
.page .calc-out {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  display: block;
  min-height: 1.4em;
}
.page .calc-out strong { display: block; }
.page .calc-out span {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-muted);
  margin-top: 6px;
  letter-spacing: 0;
}

.page .fig { margin: 8px 0 0; }
.page .fig img { width: 100%; height: auto; border-radius: 18px; background: var(--bg-soft); }
.page .fig figcaption { font-size: 13px; color: var(--ink-soft); margin-top: 10px; line-height: 1.5; }
.page .fig--banner img { background: linear-gradient(160deg, #e6deff, #f7f4ff); }

.page .wiki {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 28px;
}
.page .toc-box {
  position: sticky;
  top: calc(var(--nav-h) + 16px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 8px 16px 16px;
}
.page .toc-box summary {
  cursor: pointer;
  font-weight: 700;
  padding: 10px 0;
  list-style: none;
}
.page .toc-box summary::-webkit-details-marker { display: none; }
.page .toc-box ol { margin: 0; padding: 0 0 0 18px; display: flex; flex-direction: column; gap: 8px; }
.page .toc-box a { font-size: 13px; color: var(--ink-muted); font-weight: 500; }
.page .toc-box a[aria-current="true"], .page .toc-box a:hover { color: var(--violet); }
.page .wiki-sec { margin: 0 0 36px; }
.page .wiki-sec h2 {
  font-size: 1.35rem;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.page .wiki-body p { color: var(--ink-muted); margin: 0 0 12px; line-height: 1.65; }
/* :not(.btn) — this rule has the same specificity as `.page a.btn--primary` and
   comes later, so without it every button inside a wiki page took violet,
   underlined text on its near-black fill: 3.47:1, below the 4.5:1 minimum. */
.page .wiki-body a:not(.btn) { color: var(--violet); text-decoration: underline; }
.page .cmp-scroll { overflow-x: auto; }
.page table.cmp {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 12px 0;
}
.page table.cmp th, .page table.cmp td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.page table.cmp caption {
  caption-side: bottom;
  text-align: left;
  color: var(--ink-soft);
  font-size: 12px;
  padding-top: 8px;
}
.page .ul, .page .ol { padding-left: 1.2rem; color: var(--ink-muted); display: flex; flex-direction: column; gap: 8px; }
.page .ul { list-style: disc; }
.page .ol { list-style: decimal; }
.page mark.todo { background: #fff3bf; padding: 0 4px; border-radius: 4px; }
.page code { font-size: 0.9em; background: var(--bg-soft); padding: 1px 6px; border-radius: 6px; }

.page .shot-wash {
  display: flex;
  justify-content: center;
  padding: 20px;
  border-radius: 28px;
  background:
    radial-gradient(120% 90% at 20% 10%, rgba(221, 212, 255, 0.95) 0%, rgba(221, 212, 255, 0) 55%),
    linear-gradient(160deg, #efebff 0%, #f7f3ff 48%, #f4f2fa 100%);
}
.page .iphone__screen img {
  width: min(240px, 100%);
  height: auto;
  filter: drop-shadow(0 14px 28px rgba(10, 10, 11, 0.12));
  background: transparent;
}
.page .iphone { background: transparent; }

.page .legal-prose p, .page .wiki-body li { line-height: 1.65; }

.ft-grid {
  max-width: var(--max);
  margin: 0 auto 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 28px;
  text-align: left;
}
.ft-col h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.ft-col ul { display: flex; flex-direction: column; gap: 8px; }
.ft-col a { font-size: 14px; font-weight: 500; color: var(--ink-muted); }
.ft-col a:hover { color: var(--violet); }
.ft-form { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.ft-form input {
  flex: 1;
  min-width: 160px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
}
.ft-form button {
  background: #0a0a0b;
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
}
.ft-status { font-size: 13px; color: var(--ink-soft); min-height: 1.2em; margin-top: 8px; }

@media (max-width: 960px) {
  .page .g3, .page .g4, .page .split, .page .wiki, .page .idx-list--art, .ft-grid {
    grid-template-columns: 1fr 1fr;
  }
  .page .wiki { grid-template-columns: 1fr; }
  .page .toc-box { position: static; }
}
@media (max-width: 720px) {
  .page .g3, .page .g4, .page .split, .page .idx-list--art, .ft-grid {
    grid-template-columns: 1fr;
  }
  .page .section { padding: 36px 0 56px; }
}
