/* TobioEdge site shell. Shared by every project page and privacy page.
   This file owns the skeleton only: header, footer, store badges, phone
   frames, the reading layout for privacy pages, and the responsive rules for
   those parts. It never sets a colour or a font directly. Every value comes
   from the tokens the page defines in its own <style> block:

     --bg, --bg-alt, --panel, --border      surfaces
     --text, --muted, --dim                 type
     --accent, --accent-strong              links and highlights
     --display                              the display font stack

   Change this file and every page on the site changes with it, which is the
   point. Change a page's tokens and only that page changes. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif; line-height: 1.55;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); }
img { max-width: 100%; height: auto; }
.display { font-family: var(--display); }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* Header: brand left, page nav right, studio link on the far right. */
.site-header { display: flex; align-items: center; justify-content: space-between;
               gap: 18px; padding: 24px 0; }
.brand { display: flex; align-items: center; gap: 13px; font-weight: 700;
         font-size: 21px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand img { width: 42px; height: 42px; border-radius: 10px; }
.site-nav { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.site-nav a { color: var(--muted); }
.site-nav a:hover { color: var(--text); }
.home-link { display: inline-flex; align-items: center; gap: 7px; margin-left: 10px;
             padding: 7px 13px; border: 1px solid var(--border); border-radius: 999px;
             color: var(--muted); font-size: 14px; white-space: nowrap; }
.home-link:hover { border-color: var(--muted); color: var(--text); }
.home-link svg { width: 14px; height: 14px; }

/* Store badges and generic action buttons in the hero. */
.badges { display: flex; gap: 15px; flex-wrap: wrap; }
.badge { display: flex; align-items: center; gap: 12px; background: var(--badge-bg, var(--panel));
         border: 1px solid var(--border); border-radius: 12px; padding: 12px 22px;
         min-height: 44px; color: var(--text); }
.badge:hover { border-color: var(--muted); color: var(--text); }
.badge svg { flex: 0 0 auto; fill: var(--text); }
.badge span { display: flex; flex-direction: column; line-height: 1.15; }
.badge small { font-size: 11px; color: var(--muted); }
.badge b { font-size: 18px; font-weight: 600; }
.button { display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
          padding: 10px 22px; border-radius: 12px; font-weight: 600; font-size: 16px;
          background: var(--accent); color: var(--bg); border: 1px solid transparent; }
.button:hover { background: var(--accent-strong); color: var(--bg); }
.button.secondary { background: transparent; color: var(--text); border-color: var(--border); }
.button.secondary:hover { border-color: var(--muted); }
.meta-line { margin: 0; font-size: 14px; color: var(--dim); }

/* A phone screenshot, framed. */
.phone { width: min(300px, 70vw); border-radius: 26px; border: 1px solid var(--border);
         display: block; height: auto;
         box-shadow: var(--phone-glow, 0 0 0 rgba(0,0,0,0)), 0 10px 40px rgba(0,0,0,0.45); }

/* Reading layout, used by privacy pages and any long text page. */
.prose { max-width: 44rem; padding: 12px 0 64px 0; font-size: 17px; }
.prose h1 { margin: 0 0 8px 0; font-size: clamp(30px, 4.5vw, 40px); line-height: 1.1; }
.prose h2 { margin: 2rem 0 0.5rem 0; font-size: 21px; }
.prose p, .prose li { color: var(--text); }
.prose .meta { color: var(--muted); font-size: 15px; margin-bottom: 1.5rem; }
.prose code { font-size: 0.9em; color: var(--muted); }
.prose strong { color: var(--text); }

/* Footer: studio, contact, legal, always in this order. */
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px;
               flex-wrap: wrap; padding: 38px 0 46px 0; font-size: 14px; color: var(--dim);
               border-top: 1px solid var(--border); margin-top: 24px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.site-footer .sep { margin: 0 8px; }

@media (max-width: 860px) {
  .site-header { flex-wrap: wrap; justify-content: center; text-align: center; }
  .site-nav { flex-wrap: wrap; justify-content: center; gap: 16px 22px; }
  .home-link { margin-left: 0; }
  .badges { justify-content: center; }
  .site-footer { justify-content: center; text-align: center; }
}
