/* Splitsy — shared marketing/legal/support stylesheet
   Brand colors match the app:
     teal  #0D9488
     orange #FF6B35
     dark  #1C1917
*/

* { box-sizing: border-box; }

:root {
  --teal: #0D9488;
  --teal-dark: #0A7A70;
  --orange: #FF6B35;
  --orange-soft: #FFF1E9;
  --bg: #FFFBF7;
  --bg-card: #FFFFFF;
  --text: #1C1917;
  --text-soft: #44403C;
  --text-muted: #78716C;
  --border: #E7E5E4;
  --shadow: 0 4px 24px rgba(28, 25, 23, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E0C0A;
    --bg-card: #1C1917;
    --text: #F5F5F4;
    --text-soft: #D6D3D1;
    --text-muted: #A8A29E;
    --border: #3F3935;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  }
}

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--orange); text-decoration: none; font-weight: 600; }
a:hover { text-decoration: underline; }

/* === Layout === */
.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === Header === */
header.site-header {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
header.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 9px;
}
.brand-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.3px;
}
.brand-name .accent { color: var(--orange); }
nav.top-nav {
  display: flex;
  gap: 22px;
  font-size: 14px;
}
nav.top-nav a {
  color: var(--text-soft);
  font-weight: 500;
}

/* === Hero === */
.hero {
  padding: 80px 0 64px;
  background: linear-gradient(180deg, var(--bg), var(--bg));
  text-align: center;
}
.hero .badge-pill {
  display: inline-block;
  background: var(--orange-soft);
  color: var(--orange);
  border: 1px solid rgba(255, 107, 53, 0.35);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero img.app-icon {
  width: 96px;
  height: 96px;
  border-radius: 22%;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 56px;
  margin: 0 0 16px;
  letter-spacing: -1.5px;
  line-height: 1.05;
  font-weight: 800;
  color: var(--text);
}
.hero h1 .accent { color: var(--orange); }
.hero .lede {
  font-size: 19px;
  color: var(--text-soft);
  max-width: 620px;
  margin: 0 auto 28px;
}
.cta-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--text);
  color: var(--bg);
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  text-decoration: none !important;
}
.btn:hover { opacity: 0.9; }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-app-store {
  background: var(--text);
  color: white;
}

/* === Section base === */
section { padding: 64px 0; }
section h2 {
  font-size: 32px;
  letter-spacing: -0.6px;
  font-weight: 800;
  margin: 0 0 12px;
  text-align: center;
  color: var(--text);
}
section p.section-lede {
  font-size: 15px;
  color: var(--text-muted);
  text-align: center;
  max-width: 560px;
  margin: 0 auto 36px;
}

/* === Feature grid === */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 24px;
}
.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
}
.feature .icon-glyph {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--orange-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
}
.feature .icon-glyph.teal { background: rgba(13, 148, 136, 0.12); }
.feature h3 {
  font-size: 16px;
  margin: 0 0 6px;
  font-weight: 700;
  color: var(--text);
}
.feature p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}

/* === Steps === */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.step {
  text-align: center;
  padding: 0 12px;
}
.step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--orange);
  color: white;
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 14px;
}
.step h3 { font-size: 16px; margin: 0 0 6px; font-weight: 700; }
.step p { font-size: 13px; color: var(--text-muted); margin: 0; }

/* === Legal / docs page === */
.doc {
  padding: 48px 0 80px;
}
.doc h1 {
  font-size: 36px;
  letter-spacing: -0.6px;
  margin: 0 0 4px;
  font-weight: 800;
}
.doc .effective {
  color: var(--text-muted);
  font-size: 13px;
  font-style: italic;
  margin: 0 0 28px;
}
.doc h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 28px 0 8px;
  color: var(--text);
}
.doc p {
  font-size: 15px;
  color: var(--text-soft);
  margin: 0 0 12px;
}

/* === FAQ === */
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 12px;
}
.faq-item h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--text);
}
.faq-item p {
  font-size: 14px;
  color: var(--text-soft);
  margin: 0;
}

/* === Footer === */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  margin-top: 64px;
  background: var(--bg);
}
footer.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
}
.footer-brand img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}
.footer-links {
  display: flex;
  gap: 18px;
  font-size: 13px;
}
.footer-links a {
  color: var(--text-muted);
  font-weight: 500;
}

/* === Mobile tweaks === */
@media (max-width: 640px) {
  .hero { padding: 56px 0 40px; }
  .hero h1 { font-size: 38px; }
  .hero img.app-icon { width: 80px; height: 80px; }
  section { padding: 48px 0; }
  section h2 { font-size: 26px; }
  nav.top-nav { gap: 14px; }
  nav.top-nav a { font-size: 13px; }
}
