/* Shared chrome for m3llo.app pages on design system v3.3: the top bar,
   section headings, the FAQ, the download strip and the footer.
   Loads after /assets/graphite.css. Page layout stays in each page. */

html { scroll-behavior: smooth; }
body { font-size: 16px; overflow-x: hidden; }
img { display: block; max-width: 100%; }

/* Things you can press carry a clip-path, which hides an outline. They get
   an inset ring instead: white on graphite, dark on a white fill. */
.btn:focus-visible, .ib:focus-visible, .social a:focus-visible {
  outline: 0;
  box-shadow: inset 0 0 0 2px var(--accent), inset 0 0 0 4px var(--bg-app);
}

.label-reg {
  font-family: var(--text-face);
  font-weight: 600;
  font-size: 9.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ── top bar ─────────────────────────────────────────────────── */
/* Part of the page: it scrolls away with the content, it does not float. */
.top {
  position: relative; z-index: 60;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
}
.top .mark { font-size: 20px; text-decoration: none; }
.top-right { display: flex; align-items: center; gap: 12px; }
a.top-link { text-decoration: none; }
a.top-link:hover { color: var(--text-hi); }

/* ── section heading ─────────────────────────────────────────── */
.sec-tag { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.sec-tag-bar { width: 22px; height: 1px; background: var(--line-hi); }
.sec-tag b { font-weight: 600; color: var(--text-hi); }
.sec-head {
  font-weight: 300;
  font-size: clamp(1.8rem, 3.4vw, 2.9rem);
  letter-spacing: -.04em;
  line-height: 1.06;
  max-width: 20ch;
}
.sec-head em { font-style: normal; font-weight: 200; color: var(--text-dim); }

/* ── download strip ──────────────────────────────────────────── */
.cta-strip { padding: 30px 28px 8px; }
.cta-strip-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: center; gap: 11px; flex-wrap: wrap; }
.cta-strip .btn { padding: 15px 24px; }
.cta-strip .btn svg { width: 13px; height: 13px; fill: currentColor; }

/* ── FAQ ─────────────────────────────────────────────────────── */
.faq { padding: 80px 28px; border-top: 1px solid var(--line); }
.faq-inner { max-width: 820px; margin: 0 auto; }
.faq .sec-head { margin-bottom: 34px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item h3 { font-size: inherit; font-weight: inherit; letter-spacing: inherit; }
.faq-q {
  width: 100%;
  display: flex; align-items: center; gap: 14px;
  padding: 19px 0;
  text-align: left;
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -.02em;
  line-height: 1.3;
  color: var(--text-hi);
}
.faq-q .ic { width: 14px; height: 14px; color: var(--text-dim); transform: rotate(-90deg); transition: transform .15s; }
.faq-q[aria-expanded="true"] .ic { transform: none; }
.faq-q:hover .ic { color: var(--text-hi); }
.faq-a { padding: 0 0 19px 28px; font-size: 14px; line-height: 1.8; color: var(--text-dim); }
.faq-a a { color: var(--text-hi); text-decoration: none; border-bottom: 1px solid var(--line-hi); }
.faq-a a:hover { border-bottom-color: var(--text-hi); }

/* ── footer ──────────────────────────────────────────────────── */
/* The brand column is wide, every link column after it is 1fr, so a page
   can carry three or four link columns. */
.site-foot { border-top: 1px solid var(--line); background: var(--bg-panel); padding: 48px 28px 28px; }
.ft-inner { max-width: 1200px; margin: 0 auto; }
.ft-top { display: grid; grid-template-columns: 2fr; grid-auto-columns: 1fr; grid-auto-flow: column; gap: 32px; }
.ft-brand .mark { font-size: 20px; text-decoration: none; }
.ft-tagline { font-size: 13px; color: var(--text-dim); margin-top: 14px; max-width: 38ch; }
.ft-col h4 { font-family: var(--text-face); font-weight: 600; font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-hi); margin-bottom: 14px; }
.ft-col a { display: block; font-size: 13px; color: var(--text-dim); text-decoration: none; padding: 4px 0; }
.ft-col a:hover { color: var(--text-hi); }
.ft-bot { display: flex; justify-content: space-between; gap: 22px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
.legal { font-size: 11px; line-height: 1.7; color: var(--text-faint); max-width: 74ch; }
.social { display: flex; gap: 8px; flex-shrink: 0; }
.social a {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-raised);
  font-weight: 600; font-size: 9px; letter-spacing: .1em;
  color: var(--text-dim);
  text-decoration: none;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.social a:hover { color: var(--text-hi); background: var(--bg-raised-hover); }

/* ── responsive ──────────────────────────────────────────────── */
@media (max-width: 860px) {
  .ft-top { grid-template-columns: 1fr 1fr; grid-auto-flow: row; }
  .ft-bot { flex-direction: column; }
}
@media (max-width: 560px) {
  .top, .cta-strip, .faq, .site-foot { padding-left: 16px; padding-right: 16px; }
  .faq { padding-top: 60px; padding-bottom: 60px; }
  .cta-strip .btn { flex: 1 1 auto; }
  .faq-a { padding-left: 0; }
}
