/* Foilgrass — shared styles for content pages (docs, privacy, app pages).
   Daylight design language: warm porcelain, dark-chrome foil, paper-glass sheets. */
:root {
  --bg: #f3f1ea;
  --bg-deep: #eceade;
  --ink: #20241f;
  --ink-dim: #5c655c;
  --ink-faint: #8a9288;
  --mint: #7ea883;
  --champ: #8a6d2f;
  --glass: rgba(255,255,255,.62);
  --glass-2: rgba(255,255,255,.34);
  --edge: rgba(24,28,24,.10);
  --edge-lit: rgba(255,255,255,.95);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(900px 420px at 50% -8%, rgba(126,168,131,.12), transparent 60%),
    linear-gradient(180deg, #f8f7f2, var(--bg) 30%);
  background-color: var(--bg);
  color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; min-height: 100vh;
}
a { color: inherit; }

/* frosted nav (same as landing) */
.nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  z-index: 50; display: flex; align-items: center; gap: 26px;
  padding: 10px 22px 10px 16px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,.55));
  border: 1px solid var(--edge); border-top-color: var(--edge-lit);
  backdrop-filter: blur(16px) saturate(1.15); -webkit-backdrop-filter: blur(16px) saturate(1.15);
  box-shadow: 0 12px 36px rgba(30,36,30,.12); white-space: nowrap;
}
.nav .mark { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav .mark b { font-family: var(--serif); font-weight: 500; font-size: 15px; letter-spacing: .14em; }
.nav a.lnk { font-size: 13.5px; color: var(--ink-dim); text-decoration: none; transition: color .18s; }
.nav a.lnk:hover { color: var(--ink); }

/* content sheet */
.page { max-width: 800px; margin: 0 auto; padding: 130px 24px 80px; }
.crumb { font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 18px; }
.crumb a { color: var(--ink-faint); text-decoration: none; }
.crumb a:hover { color: var(--champ); }
.page h1 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 5.5vw, 52px);
  line-height: 1.08; letter-spacing: .01em; margin-bottom: 14px;
}
.lede { color: var(--ink-dim); font-size: 17px; max-width: 620px; margin-bottom: 40px; }
.sheet {
  border-radius: 22px; padding: clamp(26px, 4.5vw, 48px);
  background: linear-gradient(170deg, rgba(255,255,255,.92), rgba(255,255,255,.72));
  border: 1px solid var(--edge); border-top-color: var(--edge-lit);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 22px 60px rgba(30,36,30,.10), 0 4px 14px rgba(30,36,30,.05);
}
.sheet + .sheet { margin-top: 22px; }

/* long-form typography */
.sheet h2 {
  font-family: var(--serif); font-weight: 500; font-size: 25px; letter-spacing: .01em;
  margin: 34px 0 12px; padding-top: 26px; border-top: 1px solid rgba(24,28,24,.09);
}
.sheet h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.sheet h3 { font-size: 16.5px; font-weight: 600; margin: 24px 0 8px; color: var(--ink); }
.sheet p { color: #3b433b; margin: 10px 0; }
.sheet ul, .sheet ol { margin: 10px 0 14px; padding-left: 24px; color: #3b433b; }
.sheet li { margin: 7px 0; }
.sheet li::marker { color: var(--mint); }
.sheet strong { color: var(--ink); font-weight: 600; }
.sheet a:not(.btn) { color: var(--champ); text-decoration: none; border-bottom: 1px solid rgba(138,109,47,.35); }
.sheet a:not(.btn):hover { border-bottom-color: var(--champ); }
.sheet code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13.5px;
  background: rgba(24,28,24,.06); border: 1px solid rgba(24,28,24,.08);
  padding: 1.5px 7px; border-radius: 6px; color: #2c332c;
}
.callout {
  margin: 18px 0; padding: 14px 18px; border-radius: 12px; font-size: 14.5px;
  background: rgba(126,168,131,.10); border: 1px solid rgba(126,168,131,.30);
  border-left: 3px solid var(--mint); color: #33402f;
}
.callout.warm { background: rgba(196,178,128,.12); border-color: rgba(138,109,47,.28); border-left-color: var(--champ); color: #4a3f24; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%; margin-right: 10px; flex: none;
  font-size: 13px; font-weight: 600; color: #101311;
  background: linear-gradient(135deg, #3a413a, #20241f); color: #f5f6f2;
}
.meta-line { font-size: 13px; color: var(--ink-faint); margin-top: 26px; }

/* buttons (shared with landing) */
.btn {
  position: relative; overflow: hidden; display: inline-block; text-decoration: none;
  font-size: 14.5px; font-weight: 500; letter-spacing: .02em;
  padding: 13px 26px; border-radius: 999px; transition: transform .18s, border-color .18s;
  border: none; cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-foil {
  color: #f5f6f2;
  background: linear-gradient(180deg, #3a413a, #232823);
  box-shadow: 0 12px 28px rgba(30,36,30,.28), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn-glass {
  color: var(--ink);
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.6));
  border: 1px solid var(--edge); border-top-color: var(--edge-lit);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 22px rgba(30,36,30,.10);
}

/* footer */
footer {
  margin-top: 90px; padding: 36px 24px; border-top: 1px solid rgba(24,28,24,.09);
  text-align: center; font-size: 12.5px; color: #8a9288;
}
footer a { color: var(--ink-faint); text-decoration: none; margin: 0 10px; }
footer a:hover { color: var(--champ); }

@media (max-width: 640px) {
  .nav { gap: 14px; padding: 9px 16px 9px 12px; }
  .nav a.lnk { font-size: 12px; }
  .nav .mark b { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
