/* ========================================
   The Simple App Company — Global Styles
   ======================================== */

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.7;
  color: #1a1a1a;
  background-color: #f9f9f7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Layout */
.container {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  width: 100%;
}

main {
  flex: 1;
  padding-top: 2.5rem;
  padding-bottom: 3rem;
}

/* ----------------------------------------
   Header
   ---------------------------------------- */
.site-header {
  border-bottom: 1px solid #d8d4ce;
  padding: 1.5rem 0 1.25rem;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #1a1a1a;
}

.brand:hover {
  color: #5b7fa6;
}

.brand svg {
  flex-shrink: 0;
}

.brand-name {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Navigation */
.site-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  color: #1a1a1a;
  font-size: 0.92rem;
  font-weight: 450;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.site-nav a:hover {
  color: #5b7fa6;
}

.site-nav a[aria-current="page"] {
  color: #5b7fa6;
  border-bottom-color: #5b7fa6;
}

/* ----------------------------------------
   Typography
   ---------------------------------------- */
h1 {
  font-size: 1.75rem;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.015em;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: #5b7fa6;
}

a:hover {
  color: #476a8e;
}

/* ----------------------------------------
   Hero (Home page)
   ---------------------------------------- */
.hero {
  padding: 2rem 0 1rem;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.hero .tagline {
  color: #5b7fa6;
  font-size: 0.95rem;
  font-weight: 450;
  margin-bottom: 0;
}

/* Philosophy blockquote */
.philosophy {
  background-color: #eeecea;
  border-left: 3px solid #5b7fa6;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  border-radius: 0 6px 6px 0;
  font-size: 1rem;
  line-height: 1.75;
}

.philosophy p {
  margin-bottom: 0;
}

/* Placeholder / muted text */
.placeholder {
  color: #777;
  font-style: italic;
  font-size: 0.95rem;
}

/* CTA link */
.cta {
  display: inline-block;
  margin-top: 1.5rem;
  font-weight: 500;
  font-size: 1rem;
  color: #5b7fa6;
  text-decoration: none;
  border-bottom: 1px solid #5b7fa6;
  padding-bottom: 1px;
}

.cta:hover {
  color: #476a8e;
  border-bottom-color: #476a8e;
}

/* ----------------------------------------
   App Card (Apps page)
   ---------------------------------------- */
.app-card {
  background-color: #eeecea;
  border: 1px solid #d8d4ce;
  border-radius: 8px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
}

.app-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.app-card p {
  font-size: 0.95rem;
  line-height: 1.7;
}

.app-card .store-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 500;
  color: #5b7fa6;
  text-decoration: none;
  font-size: 0.95rem;
}

.app-card .store-link:hover {
  color: #476a8e;
}

.app-card .coming-soon {
  color: #999;
  font-size: 0.82rem;
  font-style: italic;
  margin-left: 0.35rem;
}

/* ----------------------------------------
   Privacy page
   ---------------------------------------- */
.privacy-note {
  color: #555;
  font-size: 0.9rem;
  margin-top: 1.5rem;
}

/* ----------------------------------------
   Footer
   ---------------------------------------- */
.site-footer {
  background-color: #eeecea;
  border-top: 1px solid #d8d4ce;
  padding: 1.5rem 0;
  margin-top: auto;
}

.site-footer p {
  font-size: 0.82rem;
  color: #777;
  text-align: center;
  margin-bottom: 0.2rem;
}

.site-footer p:last-child {
  margin-bottom: 0;
}

.site-footer a {
  color: #777;
  text-decoration: none;
}

.site-footer a:hover {
  color: #5b7fa6;
}

/* ----------------------------------------
   Responsive
   ---------------------------------------- */
@media (max-width: 600px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    gap: 1.25rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  .hero h1 {
    font-size: 1.65rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  .app-card {
    padding: 1.25rem;
  }

  .philosophy {
    padding: 1rem 1.15rem;
  }
}
