/* MicroHabit — product page theme

   Provenance: rust_mh/docs/canonical/tokens.md, Scheme F (Stark Mono).
   The pale sage surface below is derived from the app's SageSoft token and
   is used only as a page backdrop, never as a progress claim.
*/
:root {
  --paper: #F7F7F7;
  --ink: #0A0A0A;
  --ink-2: #383838;
  --ink-3: #636363;
  --line: #DDDDDD;
  --line-strong: #C2C2C2;
  --accent: #7CAE7A;
  --accent-dark: #527D51;
  --font-display: 'Space Grotesk', 'Noto Sans SC', sans-serif;
  --font-body: 'Inter', 'Noto Sans SC', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Noto Sans SC', monospace;
  --microhabit-sage-soft: #C2D8B6;
  --microhabit-amber: #E8B86D;
  --microhabit-amber-soft: #F8E8CC;
  --microhabit-night: #0A0A0A;
}

.microhabit-page {
  background: var(--paper);
}

.microhabit-page .navbar.scrolled {
  background: rgba(247, 247, 247, 0.92);
}

.microhabit-page ::selection {
  background: var(--accent);
  color: #fff;
}

.microhabit-page .app-hero {
  position: relative;
  isolation: isolate;
  padding: 148px 24px 92px;
  overflow: hidden;
  background: linear-gradient(145deg, #F7F7F7 0%, #F7F7F7 58%, #EFF5EC 100%);
}

.microhabit-page .app-hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 88px;
  right: -80px;
  width: 540px;
  height: 540px;
  border: 1px solid rgba(124, 174, 122, 0.28);
  border-radius: 50%;
  box-shadow: 0 0 0 24px rgba(124, 174, 122, 0.07), 0 0 0 72px rgba(124, 174, 122, 0.04);
}

.microhabit-page .app-hero-inner {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.82fr);
  gap: clamp(48px, 9vw, 112px);
  align-items: center;
}

.microhabit-page .hero-content {
  max-width: 590px;
}

.microhabit-page .hero-eyebrow {
  color: var(--accent-dark);
}

.microhabit-page .hero-eyebrow::before {
  background: var(--accent);
}

.microhabit-page .app-hero-icon {
  width: 84px;
  height: 84px;
  margin-bottom: 26px;
  border: 0;
  box-shadow: 0 14px 30px rgba(10, 10, 10, 0.13);
}

.microhabit-page .app-hero-title {
  max-width: 12ch;
  margin: 28px 0 32px;
  font-size: clamp(3.35rem, 7.1vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.04;
}

.microhabit-page .app-hero-subtitle {
  max-width: 510px;
  margin-bottom: 34px;
  font-size: 1rem;
  color: var(--ink-2);
  line-height: 1.8;
}

.microhabit-page .app-hero-cta {
  gap: 22px;
}

.microhabit-page .app-hero-cta .text-link {
  color: var(--accent-dark);
}

.microhabit-page .app-hero-shot {
  position: relative;
  max-width: 430px;
  justify-self: end;
  margin-right: 18px;
}

.microhabit-page .app-hero-shot::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 10% -13% 12% -13%;
  border: 2px solid rgba(124, 174, 122, 0.68);
  border-radius: 50%;
  transform: rotate(-12deg);
}

.microhabit-page .app-hero-shot::after {
  content: '';
  position: absolute;
  top: 8%;
  right: -9%;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--microhabit-amber);
  box-shadow: 0 0 0 8px rgba(232, 184, 109, 0.18);
}

.microhabit-page .app-hero-shot .shot-frame {
  position: relative;
  padding: 14px;
  border-color: #D2DCD0;
  border-radius: 34px;
  background: #FFFFFF;
  box-shadow: 0 34px 58px -28px rgba(10, 10, 10, 0.32);
  transform: rotate(1.4deg);
}

.microhabit-page .app-hero-shot .shot-frame img {
  border-radius: 24px;
}

.microhabit-page .app-shots {
  background: #FFFFFF;
}

.microhabit-page .app-shots .section-container {
  padding-top: 104px;
  padding-bottom: 104px;
}

.microhabit-page .app-shots .section-head {
  margin-bottom: 34px;
}

.microhabit-page .app-shots-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.microhabit-page .app-shot {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #F7F7F7;
}

.microhabit-page .app-shot:first-child {
  border-color: rgba(124, 174, 122, 0.65);
  background: #EFF5EC;
}

.microhabit-page .app-shot .shot-frame {
  padding: 9px;
  border: 0;
  border-radius: 18px;
  background: #FFFFFF;
  box-shadow: none;
}

.microhabit-page .app-shot .shot-frame img {
  border-radius: 12px;
}

.microhabit-page .app-shot figcaption {
  margin: 16px 2px 1px;
  color: var(--ink-2);
}

.microhabit-page .app-features {
  background: var(--paper);
}

.microhabit-page .app-features .section-head {
  margin-bottom: 34px;
}

.microhabit-page .app-features-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.microhabit-page .app-feature-item {
  min-height: 224px;
  padding: 26px 24px 24px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--line-strong);
  border-radius: 18px;
  background: #FFFFFF;
}

.microhabit-page .app-feature-item:nth-child(1),
.microhabit-page .app-feature-item:nth-child(3) {
  border-top-color: var(--accent);
}

.microhabit-page .app-feature-item:nth-child(5) {
  border-top-color: var(--microhabit-amber);
  background: var(--microhabit-amber-soft);
}

.microhabit-page .app-feature-item .mono-label {
  color: var(--accent-dark);
}

.microhabit-page .app-feature-item:nth-child(5) .mono-label {
  color: #855A16;
}

.microhabit-page .app-feature-item h2,
.microhabit-page .app-feature-item h3 {
  font-size: 1.22rem;
  font-weight: 700;
}

.microhabit-page .app-feature-item p {
  color: var(--ink-2);
}

.microhabit-page .app-links {
  color: #F5F5F5;
  background: var(--microhabit-night);
  --ink: #F5F5F5;
  --ink-2: #CCCCCC;
  --ink-3: #A3A3A3;
  --line: #2B2B2B;
  --accent: #8EC48C;
}

.microhabit-page .app-links .section-rule {
  background: var(--line);
}

.microhabit-page .app-links .section-rule::after {
  background: var(--accent);
}

.microhabit-page .app-links .app-link-row {
  padding: 24px 20px;
  border-bottom-color: var(--line);
  border-radius: 14px;
}

.microhabit-page .app-links .app-link-row:hover {
  padding-left: 28px;
  background: #171717;
}

.microhabit-page .app-links .app-link-row-arrow {
  color: var(--accent);
}

.microhabit-page .footer {
  background: var(--paper);
}

@media (max-width: 1024px) {
  .microhabit-page .app-hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.76fr);
    gap: 48px;
  }

  .microhabit-page .app-hero-shot {
    max-width: 360px;
    margin-right: 8px;
  }

  .microhabit-page .app-hero-title {
    font-size: clamp(3.2rem, 7vw, 5rem);
  }
}

@media (max-width: 900px) {
  .microhabit-page .app-hero-inner {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .microhabit-page .app-hero-shot {
    justify-self: start;
    max-width: min(430px, 88vw);
    margin-right: 0;
  }

  .microhabit-page .app-features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .microhabit-page .app-hero {
    padding: 120px 20px 70px;
  }

  .microhabit-page .app-hero-title {
    font-size: clamp(3rem, 15vw, 4.6rem);
  }

  .microhabit-page .app-hero-shot {
    max-width: 86vw;
  }

  .microhabit-page .app-shots .section-container {
    padding-top: 76px;
    padding-bottom: 76px;
  }

  .microhabit-page .app-shot {
    flex-basis: 82%;
  }

  .microhabit-page .app-features-grid {
    grid-template-columns: 1fr;
  }

  .microhabit-page .app-feature-item {
    min-height: 0;
  }
}
