/* Mosi - shared stylesheet */
/* Fonts loaded via Google Fonts in each HTML head */

/* =========================================
   RESET + BASE
   ========================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:           #f4f1e9;
  --surface:      #fffdf8;
  --text:         #2f2b25;
  --text-soft:    #726b5e;
  --sage:         #5f8268;
  --sage-deep:    #4a6b53;
  --sage-soft:    #dde8de;
  --clay:         #c0824f;
  --clay-soft:    #f5e6d8;
  --border:       #e5dfd3;
  --radius-sm:    14px;
  --radius-md:    20px;
  --radius-lg:    28px;
  --shadow-sm:    0 2px 8px rgba(47,43,37,0.06);
  --shadow-md:    0 4px 20px rgba(47,43,37,0.09);
  --shadow-lg:    0 8px 36px rgba(47,43,37,0.12);
  --transition:   0.22s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', system-ui, sans-serif;
  background: var(--bg);
  /* warm radial atmosphere */
  background-image:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(193,140,80,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 90% 90%, rgba(95,130,104,0.08) 0%, transparent 60%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.75;
  font-size: 17px;
  padding-bottom: 80px;
  -webkit-font-smoothing: antialiased;
}

/* =========================================
   TYPOGRAPHY
   ========================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Fraunces', Georgia, serif;
  color: var(--text);
  line-height: 1.25;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 600; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.55rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

p { color: var(--text-soft); line-height: 1.75; }
p strong { color: var(--text); }

a {
  color: var(--sage);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}
a:hover { color: var(--sage-deep); }

/* =========================================
   LAYOUT UTILITIES
   ========================================= */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section--tight {
  padding: 56px 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* =========================================
   CARDS
   ========================================= */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.card--raised {
  box-shadow: var(--shadow-md);
}

.card--sage {
  background: var(--sage-soft);
  border-color: rgba(95,130,104,0.25);
}

.card--clay {
  background: var(--clay-soft);
  border-color: rgba(192,130,79,0.25);
}

/* =========================================
   NAV
   ========================================= */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244,241,233,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
}

.site-nav__inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-nav__wordmark {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--sage);
  text-decoration: none;
}
.site-nav__wordmark:hover { color: var(--sage-deep); }

.site-nav__links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.site-nav__links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-soft);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.site-nav__links a:hover { color: var(--sage); }

/* =========================================
   HERO
   ========================================= */
.hero {
  text-align: center;
  padding: 96px 24px 80px;
}

.hero__sprig {
  width: 72px;
  height: 72px;
  margin: 0 auto 28px;
  display: block;
}

.hero__eyebrow {
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 12px;
}

.hero__headline {
  margin-bottom: 16px;
  color: var(--text);
}

.hero__tagline {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-soft);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.65;
}

/* App Store badge placeholder */
.badge-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--text);
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
  letter-spacing: 0.01em;
}
.appstore-badge:hover {
  background: #1a1713;
  color: #fff;
  transform: translateY(-2px);
}

.appstore-badge svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: #fff;
}

.badge-soon {
  font-size: 0.78rem;
  color: var(--text-soft);
  letter-spacing: 0.04em;
}

/* =========================================
   FEATURE GRID
   ========================================= */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.6rem;
  line-height: 1;
}

.feature-card__icon--sage {
  background: var(--sage-soft);
}
.feature-card__icon--clay {
  background: var(--clay-soft);
}
.feature-card__icon--neutral {
  background: #eee8de;
}

.feature-card__title {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--text);
}

.feature-card__body {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* =========================================
   SPRIG FEATURE SECTION
   ========================================= */
.sprig-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 700px) {
  .sprig-section { grid-template-columns: 1fr; }
}

.sprig-illustration {
  display: flex;
  justify-content: center;
  align-items: center;
}

.sprig-pot {
  width: min(280px, 80vw);
  height: auto;
}

/* =========================================
   HABIT CHECK-INS
   ========================================= */
.checkin-trio {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.checkin-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.checkin-chip--done    { border-color: var(--sage); background: var(--sage-soft); }
.checkin-chip--showed  { border-color: var(--clay); background: var(--clay-soft); }
.checkin-chip--rest    { border-color: var(--border); }

.checkin-chip__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.checkin-chip--done   .checkin-chip__dot { background: var(--sage); }
.checkin-chip--showed .checkin-chip__dot { background: var(--clay); }
.checkin-chip--rest   .checkin-chip__dot { background: #b0a898; }

/* =========================================
   FOCUS ORB
   ========================================= */
.focus-orb-wrap {
  display: flex;
  justify-content: center;
  margin: 36px 0;
}

.focus-orb {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 36%, #8abf9a 0%, var(--sage) 55%, var(--sage-deep) 100%);
  box-shadow:
    0 0 0 18px rgba(95,130,104,0.12),
    0 0 0 34px rgba(95,130,104,0.06),
    var(--shadow-md);
  animation: orb-breathe 4s ease-in-out infinite;
  will-change: transform;
}

@keyframes orb-breathe {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 18px rgba(95,130,104,0.12), 0 0 0 34px rgba(95,130,104,0.06), var(--shadow-md); }
  50%       { transform: scale(1.09); box-shadow: 0 0 0 26px rgba(95,130,104,0.14), 0 0 0 48px rgba(95,130,104,0.07), var(--shadow-md); }
}

/* =========================================
   AI HELPERS GRID
   ========================================= */
.helpers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.helper-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

.helper-chip__icon {
  font-size: 1.3rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.helper-chip__text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

/* =========================================
   ACCESSIBILITY BADGES
   ========================================= */
.a11y-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.a11y-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}

.a11y-list li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage);
  flex-shrink: 0;
}

/* =========================================
   PRIVACY PLEDGE BANNER
   ========================================= */
.privacy-banner {
  background: var(--sage-soft);
  border: 1.5px solid rgba(95,130,104,0.3);
  border-radius: var(--radius-lg);
  padding: 40px 40px;
  text-align: center;
}

.privacy-banner h2 {
  color: var(--sage-deep);
  margin-bottom: 12px;
}

.privacy-banner p {
  max-width: 560px;
  margin: 0 auto 0;
  font-size: 1rem;
  line-height: 1.7;
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
  margin-top: 80px;
  border-top: 1px solid var(--border);
  padding: 36px 24px 24px;
  text-align: center;
}

.site-footer__links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.site-footer__links a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-soft);
  text-decoration: none;
}
.site-footer__links a:hover { color: var(--sage); }

.site-footer__copy {
  font-size: 0.82rem;
  color: var(--text-soft);
  opacity: 0.75;
}

/* =========================================
   DOC PAGES (privacy, support)
   ========================================= */
.doc-header {
  text-align: center;
  padding: 64px 24px 40px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.doc-header__wordmark {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--sage);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 10px;
}

.doc-header__title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.doc-main {
  max-width: 700px;
  margin: 48px auto 0;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.doc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 36px;
  box-shadow: var(--shadow-sm);
}

.doc-card--highlight {
  background: var(--sage-soft);
  border-color: rgba(95,130,104,0.3);
}

.doc-card h2 {
  font-size: 1.1rem;
  color: var(--sage);
  margin-bottom: 12px;
}

.doc-card p {
  font-size: 0.97rem;
  line-height: 1.75;
  margin-bottom: 10px;
}
.doc-card p:last-child { margin-bottom: 0; }

.doc-card .big-statement {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--sage-deep);
  line-height: 1.4;
  margin-bottom: 12px;
}

.doc-card ul {
  margin: 10px 0 12px 18px;
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.7;
}
.doc-card ul li { margin-bottom: 5px; }

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.faq-item:first-child { padding-top: 0; }
.faq-item:last-child  { border-bottom: none; padding-bottom: 0; }

.faq-item__q {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.faq-item__a {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-soft);
}

/* =========================================
   SECTION DIVIDERS + LABELS
   ========================================= */
.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 10px;
  display: block;
}

.section-intro {
  font-size: 1.05rem;
  color: var(--text-soft);
  max-width: 600px;
  line-height: 1.7;
  margin-top: 12px;
}

/* =========================================
   REDUCED MOTION
   ========================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .focus-orb {
    animation: none;
    box-shadow: 0 0 0 18px rgba(95,130,104,0.12), 0 0 0 34px rgba(95,130,104,0.06), var(--shadow-md);
  }
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 600px) {
  .section { padding: 56px 0; }
  .hero { padding: 72px 20px 60px; }
  .feature-card { padding: 28px 24px; }
  .doc-card { padding: 24px 22px; }
  .privacy-banner { padding: 28px 20px; }
  .site-nav__links { display: none; }
}
