:root {
  --cream: #fbf7ed;
  --cream-deep: #f3e9d2;
  --olive: #69724a;
  --olive-dark: #4e5836;
  --brown: #3a3028;
  --gold: #b69358;
  --white: #ffffff;
  --line: rgba(78, 88, 54, 0.16);
  --shadow: 0 12px 32px rgba(58, 48, 40, 0.08);
  --radius: 1.25rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--brown); background: var(--cream); font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.6; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.container { width: min(100% - 2.5rem, 70rem); margin-inline: auto; }
.skip-link { position: fixed; top: 0.75rem; left: 0.75rem; z-index: 20; padding: 0.65rem 0.9rem; color: var(--white); background: var(--olive-dark); border-radius: 0.5rem; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--cream) 91%, transparent); border-bottom: 1px solid rgba(78, 88, 54, 0.1); backdrop-filter: blur(12px); }
.header-content, .footer-content, .privacy-content { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.header-content { min-height: 5.25rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand-mark { display: grid; width: 2.3rem; height: 2.3rem; place-items: center; color: var(--white); background: var(--olive-dark); border-radius: 0.72rem; font-weight: 800; font-size: 1.1rem; }
.brand strong, .brand small { display: block; line-height: 1.15; }
.brand strong { font-size: 0.98rem; letter-spacing: -0.01em; }
.brand small { margin-top: 0.2rem; color: var(--olive-dark); font-size: 0.7rem; }
.nav-list { display: flex; gap: 1.4rem; margin: 0; padding: 0; list-style: none; }
.nav-list a { padding-block: 0.5rem; color: var(--olive-dark); font-size: 0.9rem; font-weight: 650; text-decoration: none; }
.nav-list a:hover { color: var(--gold); }

.hero { position: relative; overflow: hidden; padding: clamp(5.5rem, 12vw, 9.5rem) 0 clamp(5rem, 10vw, 8rem); }
.hero::after { position: absolute; top: -13rem; right: -11rem; width: 33rem; height: 33rem; content: ""; background: radial-gradient(circle, rgba(182, 147, 88, 0.22), transparent 66%); pointer-events: none; }
.hero-content { position: relative; z-index: 1; max-width: 51rem; }
.eyebrow { margin: 0 0 0.8rem; color: var(--olive); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; color: var(--brown); line-height: 1.13; letter-spacing: -0.035em; }
h1 { max-width: 44rem; margin-bottom: 1.3rem; font-size: clamp(2.55rem, 6vw, 5rem); }
h2 { margin-bottom: 0.85rem; font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { margin-bottom: 0.75rem; font-size: 1.32rem; }
.hero-copy { max-width: 42rem; margin: 0 0 2rem; color: rgba(58, 48, 40, 0.78); font-size: clamp(1.05rem, 2vw, 1.22rem); }
.hero-note { margin: 1.1rem 0 0; color: var(--olive-dark); font-size: 0.94rem; font-weight: 650; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 0.65rem; min-height: 3rem; padding: 0.75rem 1.1rem; border: 1px solid transparent; border-radius: 0.8rem; font-weight: 750; text-decoration: none; transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--white); background: var(--olive-dark); box-shadow: 0 8px 20px rgba(78, 88, 54, 0.2); }
.button-primary:hover { background: var(--olive); }
.button-secondary { color: var(--olive-dark); background: var(--white); border-color: rgba(255,255,255,0.7); }

.apps-section, .tools-section { padding: clamp(4.5rem, 8vw, 7rem) 0; }
.apps-section { background: var(--white); }
.tools-section { border-top: 1px solid var(--line); }
.section-intro { max-width: 42rem; margin-bottom: 2.5rem; }
.section-intro p:not(.eyebrow), .privacy-content p { margin: 0; color: rgba(58, 48, 40, 0.76); }
.section-intro.compact { margin-bottom: 1.8rem; }
.app-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.app-card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 1.65rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 2px 8px rgba(58, 48, 40, 0.02); transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease; }
.apps-section .app-card:hover, .tool-card:hover { border-color: rgba(182, 147, 88, 0.5); box-shadow: var(--shadow); transform: translateY(-3px); }
.app-card p { margin: 0 0 1.45rem; color: rgba(58, 48, 40, 0.72); }
.app-icon { display: grid; width: 2.85rem; height: 2.85rem; margin-bottom: 1.35rem; place-items: center; border-radius: 0.85rem; }
.app-icon svg { width: 1.55rem; height: 1.55rem; }
.icon-prayer, .icon-habits { color: var(--olive-dark); background: #edf0e3; }
.icon-blocks { color: #596f2e; background: #eef1d9; }
.icon-stories { color: #865f2f; background: #f7ead1; }
.icon-challenge { color: #7b5742; background: #f5e5dc; }
.icon-hours { color: #6d633a; background: #eee8d3; }
.app-actions { display: flex; align-items: center; min-height: 2.75rem; margin-top: auto; padding-top: 0.25rem; }
.text-link { display: inline-flex; align-items: center; gap: 0.45rem; width: fit-content; min-height: 2.75rem; color: var(--olive-dark); font-size: 0.92rem; font-weight: 760; text-underline-offset: 0.25rem; }
.text-link:hover { color: var(--gold); }
.tool-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1.3rem; padding: 1.5rem 1.65rem; background: var(--cream-deep); }
.tool-card .app-icon { margin: 0; }
.tool-card h3, .tool-card p { margin: 0; }
.tool-card p { margin-top: 0.35rem; }
.tool-card .app-actions { margin: 0; padding: 0; }

.trust-section { padding: clamp(4rem, 7vw, 6rem) 0; background: var(--cream-deep); border-top: 1px solid var(--line); }
.trust-content { display: flex; align-items: flex-start; gap: 1.35rem; max-width: 52rem; }
.trust-content h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.trust-content p:not(.eyebrow) { max-width: 43rem; margin: 0; color: rgba(58, 48, 40, 0.76); }
.trust-icon { display: grid; flex: 0 0 auto; width: 3.35rem; height: 3.35rem; place-items: center; color: var(--olive-dark); background: rgba(255, 255, 255, 0.64); border: 1px solid rgba(78, 88, 54, 0.14); border-radius: 1rem; }
.trust-icon svg { width: 1.7rem; height: 1.7rem; }

.privacy-section { padding: clamp(4.5rem, 8vw, 6.5rem) 0; color: var(--white); background: var(--olive-dark); }
.privacy-section h2 { color: var(--white); }
.privacy-section .eyebrow { color: #e4cca3; }
.privacy-content > div { max-width: 43rem; }
.privacy-content p { color: rgba(255,255,255,0.8); }
.site-footer { padding: 2.5rem 0; background: #332a23; color: rgba(255,255,255,0.72); }
.site-footer strong { color: var(--white); }
.site-footer p { margin: 0.25rem 0 0; font-size: 0.9rem; }

@media (max-width: 640px) {
  .container { width: min(100% - 2rem, 70rem); }
  .header-content { min-height: 4.7rem; gap: 0.5rem; }
  .brand small { display: none; }
  .nav-list { gap: 0.75rem; }
  .nav-list a { font-size: 0.8rem; }
  .hero { padding-top: 5rem; }
  .app-grid { grid-template-columns: 1fr; }
  .tool-card { display: flex; align-items: flex-start; }
  .tool-card .app-actions { margin-top: 0.25rem; }
  .trust-content { flex-direction: column; }
  .privacy-content, .footer-content { align-items: flex-start; flex-direction: column; }
  .privacy-content .button { width: 100%; }
}
@media (max-width: 365px) {
  .brand-mark { width: 2rem; height: 2rem; }
  .brand strong { font-size: 0.87rem; }
  .nav-list { gap: 0.5rem; }
  .nav-list a { font-size: 0.74rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
