/* Atlas site — shared design tokens + chrome (nav / footer / buttons) */
:root{
  --bg:#faf8f4; --bg2:#f4f1ea; --card:#ffffff; --text:#1a1a1c; --muted:#6b6b70;
  --border:#ece9e2; --border2:#e2ded4; --gold:#B8912F; --gold-soft:#f6efdd;
  --shadow:0 30px 70px rgba(30,25,15,.13), 0 6px 20px rgba(30,25,15,.07);
}
*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
html,body{ margin:0; }
body{
  font-family:'Nunito',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  background:var(--bg); color:var(--text); line-height:1.6;
  -webkit-font-smoothing:antialiased; overflow-x:clip;
}
a{ color:inherit; }
img{ max-width:100%; }
.container{ max-width:1080px; margin:0 auto; padding:0 24px; }
.narrow{ max-width:720px; }

/* Nav */
header.nav{ position:sticky; top:0; z-index:50; background:color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter:saturate(140%) blur(14px); -webkit-backdrop-filter:saturate(140%) blur(14px); border-bottom:1px solid var(--border); }
.nav-in{ display:flex; align-items:center; gap:16px; height:66px; }
.brand{ display:flex; align-items:center; gap:10px; text-decoration:none; font-family:'Nunito',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; font-weight:700; font-size:20px; letter-spacing:-.02em; }
.brand .mark{ width:30px; height:30px; }
.nav-links{ display:flex; gap:28px; margin-left:auto; }
.nav-links a{ text-decoration:none; color:var(--muted); font-weight:600; font-size:15px; transition:color .15s; }
.nav-links a:hover{ color:var(--text); }
.btn{ display:inline-flex; align-items:center; gap:8px; font-weight:700; font-size:15px; text-decoration:none; border-radius:100px; padding:11px 20px; transition:transform .12s ease, opacity .15s; white-space:nowrap; border:none; cursor:pointer; }
.btn:active{ transform:scale(.97); }
.btn-primary{ background:var(--text); color:var(--bg); }
.btn-primary:hover{ opacity:.9; }
.btn-ghost{ border:1px solid var(--border); color:var(--text); background:var(--card); }
.nav .btn{ margin-left:8px; padding:9px 18px; }

/* App Store badge */
.appstore{ display:inline-flex; align-items:center; gap:11px; background:var(--text); color:var(--bg); border-radius:14px; padding:11px 20px 11px 18px; text-decoration:none; transition:transform .12s ease, opacity .15s; }
.appstore:active{ transform:scale(.97); }
.appstore:hover{ opacity:.9; }
.appstore svg{ width:26px; height:26px; flex:none; }
.appstore .l1{ font-size:11px; font-weight:600; letter-spacing:.02em; opacity:.85; line-height:1.1; }
.appstore .l2{ font-size:19px; font-weight:800; letter-spacing:-.01em; line-height:1.15; }

/* Footer */
footer{ background:var(--bg2); border-top:1px solid var(--border); padding:56px 0 40px; margin-top:80px; }
.foot-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:40px; margin-bottom:40px; }
.foot-brand .brand{ margin-bottom:12px; }
.foot-brand p{ color:var(--muted); font-size:15px; margin:0; max-width:32ch; }
.foot-brand .social{ display:inline-flex; align-items:center; gap:8px; margin-top:16px; color:var(--muted); text-decoration:none; font-weight:700; font-size:14px; transition:color .16s ease; }
.foot-brand .social:hover{ color:var(--text); }
.foot-brand .social svg{ width:18px; height:18px; }
.foot-col h5{ font-size:13px; font-weight:800; letter-spacing:.04em; text-transform:uppercase; color:var(--muted); margin:0 0 14px; }
.foot-col a{ display:block; width:fit-content; text-decoration:none; color:var(--muted); font-weight:600; font-size:15px; margin-bottom:10px; transition:color .16s ease, transform .16s ease; }
.foot-col a:hover{ color:var(--text); transform:translateX(4px); }
.foot-bottom a{ transition:color .15s ease; }
.foot-bottom a:hover{ text-decoration:underline; text-underline-offset:3px; }
.foot-bottom{ display:flex; justify-content:space-between; align-items:center; gap:16px; padding-top:26px; border-top:1px solid var(--border); color:var(--muted); font-size:14px; flex-wrap:wrap; }

.mark-dark{ filter:none; }

@media (max-width:820px){
  .nav-links{ display:none; }
  .nav .btn{ margin-left:auto; }   /* no nav links on mobile -> push Download to the right */
  .foot-grid{ grid-template-columns:1fr 1fr; gap:28px; }
  .foot-brand{ grid-column:1 / -1; }
}

/* Legal / article pages */
.article{ max-width:720px; margin:0 auto; padding:56px 0 20px; }
.article h1{ font-size:clamp(30px,4.5vw,44px); font-weight:800; letter-spacing:-.03em; margin:0 0 6px; }
.article .upd{ color:var(--muted); font-size:15px; font-weight:600; margin:0 0 30px; }
.article .lead{ font-size:18px; color:var(--muted); margin:0 0 26px; line-height:1.6; }
.article h2{ font-size:21px; font-weight:800; letter-spacing:-.01em; margin:38px 0 10px; }
.article p{ margin:0 0 13px; line-height:1.72; }
.article ul{ margin:0 0 13px; padding-left:22px; }
.article li{ margin:0 0 8px; line-height:1.7; }
.article a{ color:var(--text); text-underline-offset:3px; }
.article strong{ font-weight:800; }
