:root {
  color-scheme: light;
  --background: #fbfaf7;
  --foreground: #171713;
  --muted: #625f58;
  --panel: #ffffff;
  --panel-soft: #f2eee5;
  --border: #ded8ca;
  --accent: #2f7d5c;
  --accent-strong: #145c42;
  --coral: #f47662;
  --blue: #2775b8;
  --teal-dark: #102f33;
  --teal: #1e8b8d;
  --sky: #d8eef0;
  --shadow: 0 24px 80px rgba(28, 31, 26, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: 50%;
  padding: 18px 0;
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  width: min(1120px, calc(100% - 40px));
  z-index: 3;
}

.site-header.simple {
  position: static;
  transform: none;
  width: min(960px, calc(100% - 40px));
  margin: 0 auto;
}

.theme-cleanscreen .site-header {
  color: #ffffff;
}

.theme-cleanscreen .brand-mark {
  background: #ffffff;
  color: var(--teal-dark);
}

.brand {
  align-items: center;
  color: inherit;
  display: inline-flex;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  align-items: center;
  background: var(--foreground);
  border-radius: 8px;
  color: var(--background);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 850;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.top-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-end;
}

.top-nav a {
  color: inherit;
  font-size: 0.95rem;
}

.hero {
  align-items: flex-end;
  background-position: center;
  background-size: cover;
  display: flex;
  min-height: 86svh;
  padding: 140px max(24px, calc((100vw - 1120px) / 2)) 72px;
  position: relative;
}

.hero::before {
  background:
    linear-gradient(90deg, rgba(251, 250, 247, 0.98) 0%, rgba(251, 250, 247, 0.9) 34%, rgba(251, 250, 247, 0.42) 72%, rgba(251, 250, 247, 0.12) 100%),
    linear-gradient(0deg, rgba(251, 250, 247, 0.94) 0%, rgba(251, 250, 247, 0) 32%);
  content: "";
  inset: 0;
  position: absolute;
}

.hero-home {
  background-image: url("assets/tiny-mood-garden/month.jpg");
}

.hero-app {
  background-image: url("assets/tiny-mood-garden/today.jpg");
}

.hero-cleanscreen {
  background:
    linear-gradient(125deg, rgba(15, 45, 50, 0.94), rgba(21, 91, 89, 0.78)),
    url("assets/cleanscreen-drop/icon.png");
  background-position: center;
  background-size: cover;
  color: #ffffff;
}

.hero-cleanscreen::before {
  background:
    linear-gradient(90deg, rgba(12, 30, 34, 0.88) 0%, rgba(13, 43, 47, 0.76) 45%, rgba(18, 96, 96, 0.3) 100%),
    linear-gradient(0deg, rgba(13, 43, 47, 0.72) 0%, rgba(13, 43, 47, 0) 42%);
}

.hero-cleanscreen .eyebrow,
.hero-cleanscreen .lede {
  color: var(--sky);
}

.hero-cleanscreen .button.secondary {
  border-color: rgba(255, 255, 255, 0.72);
  color: #ffffff;
}

.hero-copy {
  max-width: 760px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.04;
  margin: 0;
}

h1 {
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  letter-spacing: 0;
}

h2 {
  font-size: clamp(2rem, 4.5vw, 4rem);
  letter-spacing: 0;
  max-width: 820px;
}

h3 {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  letter-spacing: 0;
}

.lede {
  color: var(--muted);
  font-size: clamp(1.12rem, 2vw, 1.45rem);
  max-width: 660px;
  margin: 24px 0 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
}

.button.primary {
  background: var(--foreground);
  color: var(--background);
}

.button.secondary {
  border: 1px solid var(--border);
  color: var(--foreground);
}

.section {
  padding: 80px max(24px, calc((100vw - 1120px) / 2));
}

.section-heading {
  margin-bottom: 34px;
}

.app-feature {
  align-items: center;
  background: var(--panel-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1.05fr);
  min-height: 520px;
  overflow: hidden;
  padding: 34px;
}

.app-feature + .app-feature {
  margin-top: 24px;
}

.app-feature-mac {
  background:
    linear-gradient(135deg, rgba(216, 238, 240, 0.82), rgba(255, 255, 255, 0.72)),
    var(--panel);
  border-color: rgba(30, 139, 141, 0.24);
}

.app-kicker {
  color: var(--coral);
  font-weight: 800;
  margin: 0 0 12px;
}

.app-kicker.mac {
  color: var(--teal);
}

.app-copy p {
  color: var(--muted);
  font-size: 1.15rem;
  margin: 18px 0 0;
  max-width: 520px;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
}

.device-pair {
  align-items: center;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  min-height: 440px;
  position: relative;
}

.phone-shot {
  aspect-ratio: 1320 / 2868;
  background: #050505;
  border: 6px solid #11110e;
  border-radius: 28px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    0 24px 70px rgba(28, 31, 26, 0.2);
  height: min(48vw, 540px);
  object-fit: cover;
  object-position: top center;
}

.phone-shot.front {
  justify-self: end;
  position: relative;
  z-index: 2;
}

.phone-shot.back {
  filter: saturate(0.92);
  justify-self: start;
  margin-left: -44px;
  opacity: 0.82;
  transform: translateY(24px) scale(0.9);
}

.mac-preview {
  align-items: center;
  display: grid;
  margin: 0;
  min-height: 420px;
  position: relative;
}

.mac-window {
  align-self: center;
  background: linear-gradient(140deg, #12353a, #1e7272);
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 8px;
  box-shadow: var(--shadow);
  height: min(38vw, 360px);
  justify-self: center;
  overflow: hidden;
  position: relative;
  width: min(100%, 520px);
}

.mac-window-bar {
  align-items: center;
  background: rgba(8, 25, 29, 0.48);
  display: flex;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
}

.mac-window-bar span {
  background: rgba(255, 255, 255, 0.76);
  border-radius: 999px;
  height: 10px;
  width: 10px;
}

.desktop-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 64px);
  left: 34px;
  position: absolute;
  top: 72px;
}

.desktop-grid span {
  background: rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  height: 52px;
}

.menu-pill {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  color: var(--teal-dark);
  font-weight: 850;
  padding: 9px 16px;
  position: absolute;
  right: 24px;
  top: 50px;
}

.app-icon {
  border-radius: 25%;
  box-shadow: 0 18px 50px rgba(14, 45, 48, 0.34);
  height: 150px;
  justify-self: start;
  margin-left: -70px;
  margin-top: 160px;
  position: relative;
  width: 150px;
}

.feature-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid article {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
}

.feature-grid h3 {
  font-size: 1.45rem;
}

.feature-grid p {
  color: var(--muted);
  margin: 14px 0 0;
}

.product-strip {
  align-items: center;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
}

.download-panel {
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  gap: 18px;
  padding: 22px;
}

.download-icon {
  border-radius: 24%;
  flex: 0 0 auto;
  height: 88px;
  width: 88px;
}

.download-title {
  font-size: 1.18rem;
  font-weight: 850;
  margin: 0;
}

.download-meta,
.fine-print {
  color: var(--muted);
  margin: 6px 0 16px;
}

.detail-band {
  align-items: start;
  background: var(--teal-dark);
  color: #ffffff;
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1fr);
}

.detail-band .eyebrow,
.detail-band p {
  color: var(--sky);
}

.steps {
  counter-reset: steps;
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps li {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 16px 18px;
}

.checksum-section h2 {
  margin-bottom: 18px;
}

.checksum {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--teal-dark);
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  overflow-wrap: anywhere;
  padding: 18px;
}

.faq-section h2 {
  margin-bottom: 28px;
}

.faq-list {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.faq-list article {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px;
}

.faq-list h3 {
  font-size: 1.2rem;
}

.faq-list p {
  color: var(--muted);
  margin: 10px 0 0;
}

.document-page {
  margin: 0 auto;
  width: min(960px, calc(100% - 40px));
}

.document-hero {
  padding: 86px 0 44px;
}

.document-hero h1 {
  font-size: clamp(3.2rem, 8vw, 6rem);
}

.document-body {
  border-top: 1px solid var(--border);
  padding: 34px 0 86px;
}

.document-body h2 {
  font-size: 1.45rem;
  margin: 34px 0 10px;
}

.document-body h2:first-child {
  margin-top: 0;
}

.document-body p {
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0 0 14px;
  max-width: 760px;
}

.site-footer {
  align-items: center;
  border-top: 1px solid var(--border);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  margin: 0 auto;
  padding: 26px 0 42px;
  width: min(1120px, calc(100% - 40px));
}

.site-footer p {
  margin: 0;
}

@media (max-width: 760px) {
  .site-header,
  .site-header.simple,
  .site-footer {
    width: min(100% - 28px, 1120px);
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .top-nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: 84svh;
    padding: 154px 14px 48px;
  }

  .hero::before {
    background:
      linear-gradient(0deg, rgba(251, 250, 247, 0.98) 0%, rgba(251, 250, 247, 0.92) 52%, rgba(251, 250, 247, 0.32) 100%),
      linear-gradient(90deg, rgba(251, 250, 247, 0.96) 0%, rgba(251, 250, 247, 0.34) 100%);
  }

  .hero-cleanscreen::before {
    background:
      linear-gradient(0deg, rgba(12, 30, 34, 0.92) 0%, rgba(12, 30, 34, 0.82) 58%, rgba(18, 96, 96, 0.4) 100%),
      linear-gradient(90deg, rgba(12, 30, 34, 0.92) 0%, rgba(12, 30, 34, 0.34) 100%);
  }

  .section {
    padding: 56px 14px;
  }

  .app-feature {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .product-strip,
  .detail-band {
    grid-template-columns: 1fr;
  }

  .device-pair {
    min-height: 360px;
  }

  .phone-shot {
    border-width: 5px;
    border-radius: 22px;
    height: min(82vw, 340px);
  }

  .phone-shot.back {
    margin-left: -32px;
    transform: translateY(18px) scale(0.9);
  }

  .mac-preview {
    min-height: 320px;
  }

  .mac-window {
    height: 280px;
    justify-self: center;
    width: 100%;
  }

  .desktop-grid {
    gap: 12px;
    grid-template-columns: repeat(3, 48px);
  }

  .desktop-grid span {
    height: 42px;
  }

  .app-icon {
    height: 104px;
    margin-left: 24px;
    margin-top: -110px;
    width: 104px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .faq-list {
    grid-template-columns: 1fr;
  }

  .document-page {
    width: min(100% - 28px, 960px);
  }
}
