/* Splitt — splitt.dev site (homepage, privacy, support). Shared styles, no inline CSS
   so the strict Content-Security-Policy in _headers (style-src 'self') is satisfied. */

:root{
  --primary:#5B4BF5; --primary-ink:#ffffff;
  --canvas:#F4F3F8; --surface:#FFFFFF;
  --text:#15131F; --muted:#6B6880; --border:#E4E2EC;
  --accent:#FF7A1A;
}
@media (prefers-color-scheme: dark){
  :root{
    --primary:#8478FF; --primary-ink:#0E0D14;
    --canvas:#0E0D14; --surface:#1A1924;
    --text:#F5F4FA; --muted:#A3A0B5; --border:#2E2D3A;
    --accent:#FF9245;
  }
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0; background:var(--canvas); color:var(--text);
  font:16px/1.65 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
}

.wrap{max-width:720px; margin:0 auto; padding:48px 20px 80px}
.wrap-wide{max-width:960px}

/* Brand / nav */
.brand{display:flex; align-items:center; gap:10px; text-decoration:none; color:inherit}
.brand img{width:32px; height:32px; border-radius:9px; display:block}
.brand strong{font-size:18px; letter-spacing:-.3px}
.nav{display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:8px}
.nav a.navlink{color:var(--muted); font-size:15px; font-weight:500; margin-left:18px; text-decoration:none}
.nav a.navlink:hover{color:var(--text)}
.navlinks{white-space:nowrap}

/* Headings & text */
h1{font-size:30px; line-height:1.15; letter-spacing:-.5px; margin:24px 0 4px}
h2{font-size:19px; margin:34px 0 10px; letter-spacing:-.2px}
p{margin:0 0 14px}
ul{margin:0 0 14px; padding-left:22px}
li{margin:6px 0}
a{color:var(--primary); text-decoration:none}
a:hover{text-decoration:underline}
.updated,.sub{color:var(--muted); font-size:14px; margin:0 0 28px}
.sub{font-size:15px}
.lead{margin:0 0 14px}

/* Cards */
.card{background:var(--surface); border:1px solid var(--border);
      border-radius:16px; padding:22px 24px; margin:22px 0}
.card p{margin:0}

/* Buttons */
.cta{display:inline-block; background:var(--primary); color:var(--primary-ink); font-weight:600;
     padding:13px 22px; border-radius:14px; margin:6px 0 10px; text-decoration:none}
.cta:hover{text-decoration:none; opacity:.92}
.btn-row{display:flex; flex-wrap:wrap; gap:12px; align-items:center; margin:8px 0 10px}
.ghost{display:inline-block; padding:13px 22px; border-radius:14px; border:1px solid var(--border);
       color:var(--text); font-weight:600; text-decoration:none; background:var(--surface)}
.ghost:hover{text-decoration:none; border-color:var(--muted)}

/* FAQ (support) */
.faq{background:var(--surface); border:1px solid var(--border);
     border-radius:16px; padding:6px 24px; margin:22px 0}
details{border-bottom:1px solid var(--border); padding:16px 0}
details:last-child{border-bottom:0}
summary{font-weight:600; cursor:pointer; list-style:none}
summary::-webkit-details-marker{display:none}
summary::after{content:"+"; float:right; color:var(--muted); font-weight:700}
details[open] summary::after{content:"\2212"}
details p{margin:12px 0 2px; color:var(--muted)}

/* Footer */
.foot{margin-top:40px; padding-top:20px; border-top:1px solid var(--border);
      color:var(--muted); font-size:14px}
.foot a{color:var(--muted)}
.foot a:hover{color:var(--text)}

/* ---- Homepage ---- */
.hero{padding:40px 0 8px}
.eyebrow{display:inline-block; font-size:13px; font-weight:700; letter-spacing:.4px;
         text-transform:uppercase; color:var(--primary); margin:0 0 14px}
.hero h1{font-size:44px; line-height:1.08; letter-spacing:-1px; margin:0 0 16px}
.hero .lead{font-size:18px; color:var(--muted); max-width:34ch; margin:0 0 26px}

.features{display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin:36px 0 8px}
.feature{background:var(--surface); border:1px solid var(--border); border-radius:16px; padding:20px}
.feature .ic{width:40px; height:40px; border-radius:11px; display:grid; place-items:center;
             background:color-mix(in srgb, var(--primary) 14%, transparent); margin-bottom:12px}
.feature .ic svg{width:22px; height:22px; stroke:var(--primary); fill:none; stroke-width:1.9;
                 stroke-linecap:round; stroke-linejoin:round}
.feature h3{font-size:16px; margin:0 0 6px; letter-spacing:-.2px}
.feature p{font-size:14.5px; color:var(--muted); margin:0}

@media (max-width:680px){
  .hero h1{font-size:34px}
  .features{grid-template-columns:1fr; gap:12px}
  .nav a.navlink{margin-left:14px}
}
