:root {
  --bg: #f2f2f0;
  --panel: #ffffff;
  --text: #121212;
  --muted: #9a9a9a;
  --accent: #ff6969;
  --line: #1f1f1f;
  --blue: #1d8cf8;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  width: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "JetBrains Mono", monospace;
  overflow: hidden;
}

button,
input {
  font: inherit;
}

.hidden {
  display: none !important;
}

.app-shell {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0;
  width: 100%;
}

.phone-frame {
  width: 100vw;
  width: 100dvw;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--panel);
  border-radius: 0;
  position: relative;
  overflow: hidden;
}

.onboarding,
.home-screen {
  width: 100%;
}

.onboarding {
  position: relative;
}

.skip-button,
.text-button,
.next-button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.skip-button {
  position: absolute;
  top: 18px;
  right: 20px;
  z-index: 2;
  color: var(--muted);
  letter-spacing: 0.08em;
  font-size: 12px;
}

.onboarding-track {
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
}

.onboarding-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateX(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.onboarding-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.onboarding .slide-copy {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 0 22px 22px;
}

.onboarding .slide-copy--final {
  justify-content: center;
  align-items: center;
  gap: 22px;
}

.onboarding .slide-copy--final h1 {
  margin: 0;
  font-size: 82px;
  text-align: center;
  line-height: 0.92;
}

.slide-blank,
.home-blank {
  height: 58vh;
  min-height: 340px;
  background: #fff;
}

.onboarding .slide-blank {
  height: 60vh;
  min-height: 380px;
}

.slide-copy h1,
.home-section h2 {
  color: var(--accent);
  text-transform: uppercase;
  font-style: italic;
  letter-spacing: 0.02em;
  font-weight: 500;
}

.onboarding .slide-copy h1 {
  margin: 24px 0 10px;
  font-size: 38px;
  line-height: 0.98;
}

.onboarding .slide-copy p {
  margin: 0;
  max-width: 28ch;
  color: var(--text);
  font-size: 20px;
  line-height: 1.28;
  text-transform: uppercase;
}

.onboarding .onboarding-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
}

.dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.14);
}

.dot.is-active {
  background: var(--accent);
}

.onboarding .next-button {
  color: var(--text);
  font-style: italic;
  letter-spacing: 0.08em;
  font-size: 15px;
}

.onboarding .finish-button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-size: 24px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.home-layout {
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  padding: 0 8px 72px;
}

.home-blank {
  height: 42vh;
  min-height: 220px;
}

.search-form {
  margin: 0;
}

.home-section {
  margin-top: 28px;
  padding: 0 14px;
}

.home-section h2 {
  margin: 0 0 18px;
  font-size: 19px;
  line-height: 1.05;
}

.search-input {
  display: flex;
  align-items: center;
  height: 31px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
  gap: 4px;
}

.search-icon {
  color: #383838;
  font-size: 18px;
}

.search-input input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13px;
  color: var(--text);
  text-transform: lowercase;
}

.search-input input::placeholder {
  color: #d3d0cd;
  font-style: italic;
}

.category-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

.category-chip {
  min-width: 83px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  padding: 4px 12px;
  font-style: italic;
  font-size: 12px;
  cursor: pointer;
}

.category-chip.is-active {
  background: var(--text);
  color: white;
}

.floating-button {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: white;
  font-weight: 700;
  box-shadow: 0 0 0 3px #242424, 0 8px 18px rgba(21, 92, 173, 0.35);
  cursor: pointer;
}

@media (min-width: 768px) {
  .slide-blank,
  .home-blank {
    min-height: 360px;
  }

  .slide-copy,
  .home-section,
  .onboarding-footer {
    padding-left: 22px;
    padding-right: 22px;
  }

  .slide-copy h1,
  .home-section h2 {
    font-size: 28px;
  }

  .slide-copy--final h1 {
    font-size: 88px;
  }

  .slide-copy p {
    font-size: 14px;
  }

  .search-input {
    max-width: 420px;
  }
}
