/* StoicWalk Website — Shared Styles */

@font-face {
  font-family: 'Crimson Pro';
  src: url('fonts/CrimsonPro-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Crimson Pro';
  src: url('fonts/CrimsonPro-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg:        #f5f0eb;
  --surface:   #fdfaf7;
  --text:      #2c2417;
  --muted:     #7a6e62;
  --gold:      #b8973a;
  --border:    #e0d8ce;
  --max-width: 780px;
  --font-head: 'Crimson Pro';
  --font-body: 'Crimson Pro';
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 18px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.75;
}

/* ── Shared inner pages ── */
body:not(.home) {
  padding: 0 1.5rem 4rem;
}

/* ── Shared header (inner pages only) ── */
body:not(.home) header {
  max-width: var(--max-width);
  margin: 3rem auto 2.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.5rem;
}

body:not(.home) header a.back-home {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--muted);
  text-decoration: none;
}

body:not(.home) header a.back-home:hover { color: var(--gold); }

/* ── Shared main ── */
body:not(.home) main {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ── Typography ── */
h1 {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.subtitle {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
}

h2 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--gold);
  margin: 2.5rem 0 0.75rem;
}

h3 {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
  margin: 1.5rem 0 0.5rem;
}

p { margin-bottom: 1rem; }

ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.35rem; }

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Page nav (inner pages) ── */
.page-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  font-size: 0.9rem;
}

.page-nav a { color: var(--muted); border-bottom: 1px solid transparent; padding-bottom: 2px; }
.page-nav a:hover { color: var(--gold); border-bottom-color: var(--gold); text-decoration: none; }

/* ── Shared footer (inner pages) ── */
body:not(.home) footer {
  max-width: var(--max-width);
  margin: 4rem auto 0;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

body:not(.home) footer a { color: var(--muted); }
body:not(.home) footer a:hover { color: var(--gold); text-decoration: none; }

/* ── App Store button ── */
.app-store-btn {
  display: inline-block;
  margin-top: 2rem;
  text-decoration: none !important;
  opacity: 1;
  transition: opacity 0.15s;
}

.app-store-btn img {
  height: 64px;
  display: block;
}

.app-store-btn:hover { opacity: 0.8; }

/* ═══════════════════════════════════════
   HOME PAGE
═══════════════════════════════════════ */

body.home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Two-column hero */
.hero-split {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: calc(100vh - 4rem);
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem;
  gap: 3rem;
}

/* Left column */
.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}


.hero-left h1 {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--muted);
  margin-bottom: 0;
  line-height: 1.5;
}

.accent { color: var(--gold); }

/* Right column — phone mockup */
.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  background: #d4a96a;
  border-radius: 28px;
  padding: 2.5rem 1.5rem;
  width: 260px;
  box-shadow: 0 24px 60px rgba(44,36,23,0.18);
}

.phone-screen {
  background: var(--surface);
  border-radius: 16px;
  padding: 2rem 1.5rem 1.75rem;
  text-align: center;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mock-quote {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 0.5rem;
}

.mock-attr {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.mock-steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.mock-step-count {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.mock-step-label {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.mock-bar {
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.mock-bar-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 2px;
}

/* Home footer */
.home-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.25rem 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--muted);
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.home-footer nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.home-footer a { color: var(--muted); }
.home-footer a:hover { color: var(--gold); text-decoration: none; }

/* ── Responsive ── */
@media (max-width: 680px) {
  .hero-split {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 3rem 1.5rem;
  }

  .hero-left { align-items: center; }

  .hero-right { order: -1; }

  .phone-mockup { width: 220px; }

  .home-footer { flex-direction: column; text-align: center; }
  .home-footer nav { justify-content: center; }
}
