:root {
  color: #482838;
  background: #fff4f8;
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans JP', 'Yu Gothic UI', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color-scheme: light;
  --ink: #482838;
  --muted: #805368;
  --accent: #ca5c8a;
  --accent-strong: #b94776;
  --paper: #fffafd;
  --soft: #f8dce7;
  --line: #edc9d8;
  --gold: #a36c20;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 20;
  padding: 0.5rem 0.75rem;
  background: var(--ink);
  color: white;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 68px;
  padding: 0 4vw;
  border-bottom: 1px solid rgb(72 40 56 / 12%);
  background: rgb(255 244 248 / 92%);
  backdrop-filter: blur(12px);
}

.site-name {
  display: inline-flex;
  gap: 0.65rem;
  align-items: center;
  width: fit-content;
  font-size: 0.84rem;
  font-weight: 750;
  text-decoration: none;
}

.site-name span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 8px -6px 0 -2px #e8a8be;
}

nav {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2rem);
  font-size: 0.82rem;
}

nav a {
  text-decoration: none;
}

nav a:hover,
.github-link:hover,
footer a:hover {
  color: var(--accent-strong);
}

.github-link {
  justify-self: end;
  font-size: 0.82rem;
  font-weight: 700;
  text-underline-offset: 0.25em;
}

main,
footer {
  width: min(1160px, calc(100% - 8vw));
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(460px, 1fr);
  gap: clamp(2.5rem, 4vw, 4rem);
  align-items: center;
  padding: 7rem 0 8rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 700;
}

h1,
h2 {
  font-weight: 700;
  letter-spacing: -0.035em;
}

h1 {
  margin: 0;
  font-size: clamp(2.8rem, 3.8vw, 3.4rem);
  line-height: 1.25;
}

h1 span {
  display: block;
  white-space: nowrap;
}

.hero-lead {
  max-width: 34rem;
  margin: 1.75rem 0 0;
  color: var(--muted);
  font-size: 1.03rem;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.15rem;
  margin: 1.4rem 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.84rem;
  list-style: disc inside;
}

.hero-facts li::marker {
  color: var(--accent);
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border: 1px solid var(--accent-strong);
  border-radius: 4px;
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1.35;
  text-decoration: none;
}

.primary-button {
  background: var(--accent-strong);
  color: white;
}

.primary-button:hover {
  background: #a83d69;
}

.hero-screenshot {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #dfaabd;
  border-radius: 10px;
  box-shadow: 16px 18px 0 #f1bfd0;
}

.getting-started,
.tracking,
.faq {
  padding: 5rem 0;
  border-top: 1px solid var(--line);
}

.getting-started h2,
.tracking h2,
.faq h2 {
  margin: 0;
  font-size: 1.6rem;
}

.tracking h2 {
  margin-bottom: 1.5rem;
}

.section-lead {
  max-width: 48rem;
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.setup-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 4rem);
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}

.setup-steps li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.9rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.setup-steps li > span {
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 800;
}

.setup-steps h3 {
  margin: 0;
  font-size: 1rem;
}

.setup-steps p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.screens {
  padding: 7rem 0;
  border-top: 1px solid var(--line);
}

.screens > h2 {
  margin: 0 0 3rem;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
}

.screen-explorer {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
}

.screen-list {
  display: flex;
  flex-direction: column;
  align-self: start;
  border-top: 1px solid var(--line);
}

.screen-list button {
  position: relative;
  min-height: 52px;
  padding: 0.8rem 1rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-left: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}

.screen-list button:hover {
  color: var(--ink);
  background: rgb(248 220 231 / 45%);
}

.screen-list button[aria-selected='true'] {
  border-left-color: var(--accent-strong);
  background: var(--soft);
  color: var(--ink);
}

.screen-list .screen-list-child {
  padding-left: 2rem;
  font-size: 0.82rem;
}

.screen-list-child::before {
  content: '└';
  position: absolute;
  left: 0.8rem;
  color: #bb8498;
}

.screen-panel[hidden] {
  display: none;
}

.screen-description {
  min-height: 112px;
  margin-bottom: 1.5rem;
}

.screen-description h3 {
  margin: 0;
  font-size: 1.55rem;
}

.screen-description p {
  max-width: 46rem;
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.screen-shot {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #dfaabd;
  border-radius: 9px;
  box-shadow: 12px 14px 0 #f1bfd0;
}

.tracking p {
  max-width: 64rem;
  margin: 0;
  color: var(--muted);
}

.tracking p + p {
  margin-top: 0.9rem;
}

.faq-list {
  max-width: 64rem;
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  padding: 1rem 0;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.faq summary::marker {
  color: var(--accent-strong);
}

.faq details p {
  max-width: 58rem;
  margin: -0.25rem 0 1.25rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.download {
  display: flex;
  justify-content: center;
  padding: 4rem 1rem;
  background: rgb(248 220 231 / 45%);
}

footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--ink);
  color: var(--muted);
  font-size: 0.78rem;
}

footer p {
  margin: 0;
}

footer strong {
  color: var(--ink);
}

footer div {
  display: flex;
  gap: 1.5rem;
}

footer a {
  text-underline-offset: 0.25em;
}

footer small {
  grid-column: 1 / -1;
  margin-top: 2rem;
}

@media (max-width: 1050px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
  }

  .hero-screenshot {
    width: min(680px, calc(100% - 18px));
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  nav {
    display: none;
  }

  .screen-explorer {
    grid-template-columns: 180px minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  body {
    overflow-x: hidden;
  }

  .site-header {
    min-height: 60px;
  }

  .site-name {
    font-size: 0.75rem;
  }

  main,
  footer {
    width: calc(100% - 2rem);
  }

  .hero {
    max-width: calc(100vw - 2rem);
    padding: 4rem 0 5rem;
  }

  h1 {
    font-size: clamp(2.15rem, 9vw, 2.8rem);
  }

  .hero-actions {
    display: grid;
    gap: 1rem;
  }

  .hero-facts {
    display: grid;
    gap: 0.5rem;
  }

  .hero-screenshot {
    width: calc(100vw - 2rem);
    max-width: calc(100vw - 2rem);
  }

  .screens {
    padding: 5rem 0;
  }

  .setup-steps {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .screens > h2 {
    margin-bottom: 2rem;
  }

  .screen-explorer {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .screen-list {
    flex-direction: row;
    overflow-x: auto;
    border-bottom: 1px solid var(--line);
  }

  .screen-list button {
    min-width: max-content;
    border-bottom: 3px solid transparent;
    border-left: 0;
  }

  .screen-list button[aria-selected='true'] {
    border-bottom-color: var(--accent-strong);
  }

  .screen-list .screen-list-child {
    padding-left: 1.8rem;
  }

  .screen-description {
    min-height: 0;
  }

  .getting-started,
  .tracking,
  .faq {
    padding: 4rem 0;
  }

  .download {
    padding: 3rem 1rem;
  }

  footer {
    grid-template-columns: 1fr;
  }

  footer div {
    flex-wrap: wrap;
  }

  footer small {
    grid-column: auto;
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
