/* =========================================================================
   Shared styles for the inner pages: use cases, changelog, blog, support.
   index.html and macapp.html keep their own inline styles; the tokens, nav,
   badges and footer below are copied from index.html so every page reads as
   one site. Change a shared piece in both places.
   ========================================================================= */
:root {
  --bg: #000000;
  --surface: #0C0C0C;
  --card: #121212;
  --card2: #1C1C1C;
  --line: rgba(255, 255, 255, 0.09);
  --line-soft: rgba(255, 255, 255, 0.05);
  --text: #FFFFFF;
  --muted: rgba(255, 255, 255, 0.58);
  --faint: rgba(255, 255, 255, 0.36);
  --gold: #E0A97E;
  --gold-glow: #F3D7BE;
  --green: #41A97C;
  --cta: #FFFFFF;
  --cta-ink: #000000;
  --edge: linear-gradient(135deg, rgba(255,255,255,0.16), rgba(255,255,255,0) 30%, rgba(255,255,255,0) 70%, rgba(255,255,255,0.16));
  --dots: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1.4px);
  --gold-grad: linear-gradient(108deg, #FFF3DC 0%, #F3D7BE 34%, #E0A97E 72%, #CE8F5B 100%);
  --r-pill: 999px;
  --r-card: 24px;
  --r-lg: 30px;
  --maxw: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg); color: var(--text);
  line-height: 1.55; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 30px; position: relative; z-index: 1; }
.narrow { max-width: 820px; }
[id] { scroll-margin-top: 110px; }

/* the warm bloom every page opens with */
.page-glow {
  position: absolute; inset: 0 0 auto 0; height: 760px; z-index: 0; pointer-events: none;
  background: radial-gradient(760px 440px at 50% 8%, rgba(224,169,126,0.14), transparent 70%);
}

/* ---------- type ---------- */
.display { font-weight: 600; letter-spacing: -0.035em; line-height: 0.98; }
.tri {
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 42%, rgba(255,255,255,0.38) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  padding-bottom: 0.14em; line-height: 1.12;
}
.tri .acc { -webkit-text-fill-color: var(--sec-accent, var(--gold)); color: var(--sec-accent, var(--gold)); }
.eyebrow-lbl {
  display: inline-block;
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em;
  color: rgba(255,255,255,0.62);
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--r-pill);
  padding: 9px 20px; margin-bottom: 26px;
}
.page-hero { position: relative; padding: 168px 0 40px; text-align: center; }
.page-hero h1 { font-size: clamp(40px, 6.4vw, 78px); max-width: 900px; margin: 0 auto 22px; }
.page-hero .lead { color: var(--muted); font-size: 19px; max-width: 600px; margin: 0 auto; }

/* ---------- nav (same bar as index.html) ---------- */
nav { position: fixed; top: 34px; left: 0; right: 0; z-index: 60; }
.nav-inner { display: flex; align-items: center; justify-content: center; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17.5px; letter-spacing: -0.02em; }
.brand-mark { width: 23px; height: 23px; display: block; filter: drop-shadow(0 0 10px rgba(224,169,126,0.5)); }
.nav-pill {
  display: inline-flex; align-items: center; gap: 30px;
  min-height: 54px;
  background: rgba(20, 20, 20, 0.62); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.07); border-radius: var(--r-pill);
  padding: 6px 20px 6px 18px;
}
.nav-center { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.nav-pill a:not(.brand) {
  color: var(--muted); font-size: 14.5px; font-weight: 500;
  padding: 8px 13px; border-radius: var(--r-pill); transition: color 0.2s;
}
.nav-pill a:not(.brand):hover { color: var(--text); }
.nav-center a.on { color: var(--text); font-weight: 600; }
.nav-pill .brand { padding: 0; color: var(--text); flex-shrink: 0; }
.nav-dl { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; font-size: 14.5px; }
.nav-dl svg { flex-shrink: 0; }
@media (max-width: 960px) {
  .nav-pill { gap: 18px; min-height: 52px; padding: 6px 16px 6px 15px; }
  .nav-pill a:not(.brand) { font-size: 14px; padding: 8px 10px; }
}
@media (max-width: 760px) {
  .nav-inner { padding: 0 16px; }
  .nav-center { display: none; }
  .nav-pill { gap: 22px; min-height: 50px; padding: 6px 16px; }
  .nav-pill .brand { font-size: 16.5px; }
  .nav-dl { font-size: 14px; }
}

/* ---------- buttons and store badges ---------- */
.btn-white {
  background: var(--cta); color: var(--cta-ink) !important;
  font-weight: 600; font-size: 14.5px; padding: 12px 22px; border-radius: var(--r-pill);
  border: none; cursor: pointer; font-family: inherit; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform 0.15s, opacity 0.2s;
}
.btn-white:hover { transform: translateY(-1px); opacity: 0.92; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 500; font-size: 14.5px; padding: 11px 20px; border-radius: var(--r-pill);
  color: var(--text); border: 1px solid rgba(255,255,255,0.16);
  transition: border-color 0.2s, background 0.2s;
}
.btn-ghost:hover { border-color: rgba(224,169,126,0.5); background: rgba(255,255,255,0.03); }
.cta-row { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
/* Google's PNG carries 41px of clear space on every edge; see index.html */
.store-badge { height: 72px; width: auto; max-width: none; display: block; margin: 0 -11.8px; transition: transform 0.15s, opacity 0.2s; }
a.btn-store { display: inline-flex; align-items: center; flex-shrink: 0; }
a.btn-store:hover .store-badge { transform: translateY(-1px); opacity: 0.9; }
.btn-soon {
  display: inline-flex; align-items: center; gap: 11px;
  height: 48px; padding: 0 20px; border-radius: 9px;
  background: rgba(255,255,255,0.05); color: var(--muted);
  border: 1px solid rgba(255,255,255,0.11); cursor: default;
  white-space: nowrap; line-height: 1;
}
.btn-soon svg { flex-shrink: 0; opacity: 0.8; }
/* Apple's badge, unmodified, at the Google badge's visible 48px height */
.as-badge { height: 48px; width: auto; max-width: none; display: block; transition: transform 0.15s, opacity 0.2s; }
a.btn-appstore:hover .as-badge { transform: translateY(-1px); opacity: 0.9; }
.store-sub { display: block; font-size: 9.5px; font-weight: 500; letter-spacing: 0.07em; text-transform: uppercase; opacity: 0.62; margin-bottom: 4px; }
.store-name { display: block; font-size: 15px; font-weight: 600; letter-spacing: -0.015em; }

/* ---------- closing call to action ---------- */
.closer { position: relative; padding: 120px 0 130px; text-align: center; overflow: hidden; }
.closer::before {
  content: ""; position: absolute; left: 50%; top: 40px; width: 820px; height: 420px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(224,169,126,0.12), transparent); pointer-events: none;
}
.closer h2 { font-size: clamp(32px, 4.6vw, 58px); max-width: 760px; margin: 0 auto 18px; }
.closer p { color: var(--muted); font-size: 17.5px; max-width: 520px; margin: 0 auto 34px; }

/* ---------- accordion (support, use cases) ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  width: 100%; text-align: left; cursor: pointer; padding: 24px 4px;
  font-size: 17.5px; font-weight: 500; color: var(--text); letter-spacing: -0.01em;
  background: none; border: none; font-family: inherit; transition: color 0.2s;
}
.faq-q:hover { color: var(--gold-glow); }
.faq-icon { flex-shrink: 0; position: relative; width: 16px; height: 16px; transition: transform 0.3s ease; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; background: var(--gold); border-radius: 2px; }
.faq-icon::before { top: 7px; left: 0; width: 16px; height: 2px; }
.faq-icon::after { top: 0; left: 7px; width: 2px; height: 16px; }
.faq-item.open .faq-icon { transform: rotate(135deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-a > div { padding: 0 4px 26px; max-width: 700px; color: var(--muted); font-size: 15.5px; }
.faq-a p + p, .faq-a p + ul, .faq-a ul + p { margin-top: 10px; }
.faq-a ul { padding-left: 20px; }
.faq-a li { margin: 4px 0; }
.faq-a a, .prose a, .inline-link { color: var(--gold-glow); border-bottom: 1px solid rgba(243,215,190,0.3); transition: border-color 0.2s; }
.faq-a a:hover, .prose a:hover, .inline-link:hover { border-color: var(--gold-glow); }
.faq-a b, .faq-a strong { color: rgba(255,255,255,0.86); font-weight: 600; }

/* ---------- chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 500; color: rgba(255,255,255,0.7);
  padding: 5px 11px; border-radius: var(--r-pill);
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.07);
  white-space: nowrap;
}
.chip.gold { color: #2A1508; background: var(--gold-grad); border-color: transparent; font-weight: 600; }
.chip.green { color: #BFEBD5; background: rgba(65,169,124,0.16); border-color: rgba(65,169,124,0.3); }

/* ---------- footer (same as index.html) ---------- */
footer { position: relative; z-index: 2; background: var(--bg); border-top: 1px solid var(--line); padding: 64px 0 72px; }
.foot-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.foot-tagline { font-size: 13.5px; color: var(--faint); }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 26px; font-size: 14px; color: var(--muted); max-width: 760px; }
.foot-links a:hover { color: var(--text); }
.foot-note { font-size: 12.5px; color: var(--faint); }
.foot-bottom { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 16px; margin-top: 8px; }
.foot-bottom .made-by { padding-left: 16px; border-left: 1px solid var(--line); }
.made-by { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--faint); transition: color 0.2s; }
.made-by:hover { color: var(--muted); }
.mb-heart { font-size: 12px; line-height: 1; vertical-align: -1px; margin: 0 2px 0 1px; }
.made-by b { font-weight: 600; color: var(--muted); transition: color 0.2s; }
.made-by:hover b { color: var(--text); }
.made-by-face {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  object-fit: cover; object-position: 50% 50%;
  background: linear-gradient(140deg, #E0A97E, #8A5620);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.14); transition: box-shadow 0.2s;
}
.made-by:hover .made-by-face { box-shadow: 0 0 0 1px rgba(224,169,126,0.6); }

/* ---------- scroll reveal ---------- */
.reveal-init { opacity: 0; transform: translateY(28px); filter: blur(5px); }
.reveal-in {
  opacity: 1; transform: none; filter: blur(0);
  transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1), transform 1s cubic-bezier(0.16,1,0.3,1), filter 0.9s cubic-bezier(0.16,1,0.3,1);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-init { opacity: 1; transform: none; filter: none; }
}

@media (max-width: 760px) {
  .wrap { padding: 0 20px; }
  .page-hero { padding: 132px 0 28px; }
  .page-hero .lead { font-size: 17px; }
  .cta-row { flex-direction: column; gap: 12px; }
  .closer { padding: 90px 0 100px; }
  .closer::before { width: 110vw; }
  .faq-q { font-size: 16px; padding: 21px 2px; }
}
@media (max-width: 480px) {
  .foot-bottom .made-by { padding-left: 0; border-left: none; }
}
