@font-face {
  font-family: "DM Sans";
  src: url("/assets/dm-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #ffffff;
  --ink: #242628;
  --muted: #65696e;
  --rule: #e7e8e9;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body, h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
[id] { scroll-margin-top: 2rem; }
.wrap { width: min(65rem, calc(100% - 4rem)); margin-inline: auto; }

.skip {
  position: fixed;
  z-index: 3;
  top: .75rem;
  left: .75rem;
  padding: .65rem 1rem;
  background: var(--ink);
  color: white;
  border-radius: .4rem;
  transform: translateY(-160%);
}
.skip:focus { transform: translateY(0); }
:focus-visible { outline: 2px solid #6551a5; outline-offset: 5px; }

.site-header, .site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.site-header { min-height: 6rem; border-bottom: 1px solid var(--rule); }
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  flex-shrink: 0;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: -.035em;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  grid-template-columns: repeat(2, .28rem);
  gap: .15rem;
  padding: .42rem;
  background: var(--ink);
  border-radius: .35rem;
}
.brand-mark i { aspect-ratio: 1; background: var(--paper); border-radius: .03rem; }
.brand-mark i:last-child { opacity: .55; }
.site-header nav { display: flex; align-items: center; gap: 2rem; font-size: .875rem; }
.site-header nav a { color: var(--muted); text-decoration: none; padding-block: .75rem; }
.site-header nav a:hover { color: var(--ink); }

/* Shared links and controls */
.text-link { display: inline-flex; align-items: center; gap: .65rem; width: fit-content; min-height: 2.75rem; font-size: .875rem; font-weight: 500; text-decoration: none; text-underline-offset: .3em; }
.text-link:hover { text-decoration: underline; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .75rem; min-height: 2.9rem; padding: .65rem 1rem; border: 1px solid var(--ink); border-radius: .4rem; background: var(--ink); color: white; font-size: .8125rem; font-weight: 500; text-decoration: none; text-align: center; transition: background .15s ease, border-color .15s ease; }
.button:hover { background: #42464a; border-color: #42464a; }
h1, h2, h3 { text-wrap: balance; }

/* A quiet directory; product detail belongs on each app's page. */
.hero { padding: 4.5rem 0 3.5rem; }
.hero h1 { font-size: clamp(2.75rem, 5.5vw, 4rem); line-height: 1.1; letter-spacing: -.055em; font-weight: 600; }
.hero h1 span { color: #74777b; }
.hero-description { margin-top: 1.3rem; font-size: 1rem; color: var(--muted); }
.section-label { margin-bottom: 1.2rem; font-size: .875rem; font-weight: 600; }
.app-directory { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.app-card { display: flex; flex-direction: column; align-items: flex-start; padding: 2rem; border: 1px solid transparent; border-radius: .65rem; text-decoration: none; transition: border-color .15s ease, background .15s ease; }
.todo-card { background: #f5f3f8; }
.cherish-card { background: #f0f5f2; }
.app-card:hover { border-color: #babdc0; }
.app-card img { border-radius: .75rem; margin-bottom: 1.5rem; }
.app-card h3 { font-size: 1.5rem; font-weight: 600; letter-spacing: -.04em; }
.app-card p { max-width: 28ch; margin-top: .45rem; color: var(--muted); font-size: .9375rem; }
.card-link { display: flex; gap: 1rem; align-items: center; justify-content: space-between; width: 100%; margin-top: auto; padding-top: 1.75rem; font-size: .8125rem; font-weight: 500; }
.card-link > span { font-size: 1.15rem; }
.app-card:hover .card-link { text-decoration: underline; text-underline-offset: .3em; }
.home-support { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 2.5rem 0; margin-top: 2.5rem; border-top: 1px solid var(--rule); }
.home-support h2 { font-size: 1rem; letter-spacing: -.02em; font-weight: 600; }
.home-support p { margin-top: .35rem; color: var(--muted); font-size: .8125rem; }
.home-support nav { display: flex; gap: 1.75rem; }
.home-support a { display: inline-flex; gap: .75rem; align-items: center; min-height: 2.75rem; text-decoration: none; font-size: .8125rem; white-space: nowrap; }
.home-support a:hover { text-decoration: underline; text-underline-offset: .3em; }

/* Dedicated app pages */
.app-page { --stage: #f3f1f7; }
.cherish-page { --stage: #eef3f0; }
.app-hero { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 4rem; padding-block: 4rem 3rem; }
.app-identity { display: flex; align-items: center; gap: .8rem; font-size: 1rem; font-weight: 600; }
.app-identity img { border-radius: .75rem; }
.app-hero h1 { margin-top: 1.75rem; font-size: clamp(2.7rem, 4.5vw, 3.75rem); font-weight: 600; line-height: 1.1; letter-spacing: -.05em; }
.app-hero h1 span { color: #74777b; }
.app-hero-copy > p { max-width: 43ch; color: var(--muted); font-size: 1rem; line-height: 1.8; margin-top: 1.5rem; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.25rem; margin-top: 1.7rem; }
.platform-note { display: block; margin-top: .85rem; font-size: .75rem; color: var(--muted); }
.screen-stage { display: grid; place-items: center; padding: 2rem; border-radius: .65rem; background: var(--stage); }
.app-preview { width: auto; height: 25rem; max-width: 100%; object-fit: contain; border: 1px solid #24262816; border-radius: .65rem; box-shadow: 0 12px 26px -12px #24262840, 0 2px 5px #2426280a; }
figcaption { margin-top: .85rem; font-size: .6875rem; color: var(--muted); text-align: center; }
.app-nav { display: flex; flex-wrap: wrap; gap: .25rem 2rem; border-block: 1px solid var(--rule); padding: .6rem 0; }
.app-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; font-size: .8125rem; color: var(--muted); }
.app-nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: .3em; }
.detail-section { padding-block: 4rem; }
.detail-section h2, .privacy-note h2, .app-support h2 { font-size: clamp(1.65rem, 3vw, 2.2rem); font-weight: 600; line-height: 1.25; letter-spacing: -.04em; }
.feature-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: center; margin-top: 2.5rem; }
.feature-art .app-preview { height: 23rem; }
.feature-list article + article { margin-top: 1.75rem; padding-top: 1.75rem; border-top: 1px solid var(--rule); }
.feature-list h3, .steps h3 { font-weight: 600; font-size: 1rem; letter-spacing: -.02em; }
.feature-list p, .steps p, .privacy-note p, .faq p, .app-support p { color: var(--muted); font-size: .9375rem; line-height: 1.8; margin-top: .6rem; }
.getting-started { border-top: 1px solid var(--rule); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; margin: 2.25rem 0 0; padding: 0; list-style: none; }
.step-number { display: block; color: var(--muted); font-size: .75rem; margin-bottom: .8rem; }
.privacy-note { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; padding: 3rem; border-radius: .65rem; background: #f7f8f7; }
.privacy-note .text-link { margin-top: 1.25rem; }
.privacy-note p:first-child { margin-top: 0; }
.privacy-note p + p { margin-top: 1rem; }
.faq { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; }
.faq-list { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { display: flex; gap: 1.25rem; align-items: center; justify-content: space-between; min-height: 4rem; padding-block: 1.1rem; font-size: .9375rem; font-weight: 500; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: #545a60; }
.faq-symbol { flex: 0 0 12px; position: relative; width: 12px; height: 12px; }
.faq-symbol::before, .faq-symbol::after { content: ''; position: absolute; background: currentColor; width: 12px; height: 1px; top: 50%; }
.faq-symbol::after { transform: rotate(90deg); }
.faq details[open] .faq-symbol::after { display: none; }
.faq details p { padding: 0 1.5rem 1.4rem 0; margin: 0; font-size: .875rem; }
.app-support { display: flex; align-items: center; justify-content: space-between; gap: 3rem; border-top: 1px solid var(--rule); padding-block: 3rem; }
.app-support p { max-width: 47ch; }
.support-actions { display: flex; flex-direction: column; align-items: flex-start; gap: .65rem; flex-shrink: 0; }
.other-app { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.25rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: .8125rem; }
.other-app a { color: var(--ink); font-size: .8125rem; }
.site-footer { border-top: 1px solid var(--rule); padding-block: 1.5rem; font-size: .75rem; }
.site-footer .brand { font-size: .8125rem; }
.site-footer .brand-mark { display: none; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: .3em; }
.footer-brand { font-weight: 600; }
.site-footer nav { display: flex; gap: 1.5rem; color: var(--muted); }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 2.75rem; }

.policy { max-width: 44rem; padding-block: 3.5rem 5rem; overflow-wrap: anywhere; }
.policy h1 { margin: 2rem 0 1rem; font-size: clamp(2.1rem, 5vw, 3rem); font-weight: 600; letter-spacing: -.045em; line-height: 1.15; }
.policy .effective { display: block; margin-bottom: 2rem; font-size: .8125rem; color: var(--muted); }
.policy h2 { margin: 2rem 0 .65rem; font-size: 1.125rem; font-weight: 600; letter-spacing: -.02em; }
.policy p { color: #555b61; line-height: 1.85; font-size: .9375rem; }
.policy p + p { margin-top: 1rem; }
.policy a { text-underline-offset: .22em; }
.policy p a { color: var(--ink); }

@media (max-width: 55rem) {
  .app-hero, .feature-layout, .privacy-note, .faq { gap: 2rem; }
  .app-hero h1 { font-size: 2.75rem; }
  .privacy-note { padding: 2rem; }
  .steps { gap: 1.5rem; }
  .app-support { align-items: flex-start; flex-direction: column; gap: 1.5rem; }
}
@media (max-width: 42rem) {
  .wrap { width: calc(100% - 3rem); }
  .hero { padding-block: 3.5rem 2.75rem; }
  .app-card { padding: 1.5rem; }
  .app-directory { gap: 1rem; }
  .home-support { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .app-hero { grid-template-columns: 1fr; padding-block: 2.5rem; }
  .app-hero h1 { font-size: clamp(2.6rem, 8vw, 3.5rem); }
  .app-hero-copy > p { max-width: 45ch; }
  .app-preview { height: 23rem; }
  .feature-layout { grid-template-columns: .8fr 1fr; }
  .feature-art .screen-stage { padding: 1.5rem .75rem; }
  .feature-art .app-preview { height: 20rem; }
  .privacy-note, .faq { grid-template-columns: 1fr; }
  .detail-section { padding-block: 3rem; }
}
@media (max-width: 32rem) {
  .wrap { width: calc(100% - 2.5rem); }
  .site-header { min-height: 5rem; gap: 1rem; }
  .brand { font-size: .85rem; gap: .5rem; }
  .site-header nav { gap: 1rem; font-size: .8125rem; }
  .hero h1 { font-size: clamp(2.4rem, 9vw, 3rem); }
  .hero-description { max-width: 27ch; font-size: .9375rem; }
  .app-directory { grid-template-columns: 1fr; gap: 1rem; }
  .app-card { padding: 1.5rem; }
  .app-card img { width: 44px; height: 44px; margin-bottom: 1rem; }
  .app-card h3 { font-size: 1.35rem; }
  .card-link { padding-top: 1.25rem; }
  .home-support { margin-top: 2rem; padding-block: 2rem; }
  .home-support nav { gap: 2rem; }
  .app-hero h1 { font-size: 2.65rem; }
  .app-hero-copy > p { font-size: .9375rem; }
  .app-nav { gap: 0 1.25rem; }
  .app-nav a { font-size: .75rem; }
  .feature-layout, .steps { grid-template-columns: 1fr; }
  .feature-art .app-preview { height: 21rem; }
  .steps { gap: 1.75rem; }
  .privacy-note { padding: 1.5rem; }
  .other-app { align-items: flex-start; flex-direction: column; gap: 0; }
  .site-footer { flex-wrap: wrap; gap: .5rem 1rem; }
  .policy { padding-block: 2.5rem 3.5rem; }
}
@media (max-width: 22rem) {
  .site-header { flex-wrap: wrap; padding-block: 1rem; gap: .4rem 1rem; }
  .site-header nav { width: 100%; }
  .app-hero h1 { font-size: 2.35rem; }
  .screen-stage { padding-inline: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
