:root {
  --ink: #13212B;
  --ink-2: #44525C;
  --pink: #FFE3EA;
  --pink-2: #F7CBD6;
  --green: #1E9467;
  --deep: #0D4A34;
  --yellow: #FFD23F;
  --cream: #FFFDF5;
  --rule: #E9E1D3;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --text: 'Rethink Sans', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--pink);
  color: var(--ink);
  font-family: var(--text);
  font-size: 20px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p { margin: 0; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 64px; }

.screen { min-height: 100vh; display: flex; align-items: center; padding: 112px 0; }

.fig svg { display: block; width: 100%; height: auto; overflow: visible; }

.eyes { transform-box: fill-box; transform-origin: center; animation: blink 7s infinite; }

@keyframes blink {
  0%, 94%, 100% { transform: scaleY(1); }
  96.5% { transform: scaleY(0.08); }
}

.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--cream);
  font-weight: 700;
  font-size: 21px;
  line-height: 1;
  text-decoration: none;
  padding: 22px 38px;
  border-radius: 999px;
  transition: transform .2s var(--ease), background-color .2s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible, .topics button:focus-visible { outline: 4px solid var(--yellow); outline-offset: 4px; }
.btn-light { background: var(--yellow); color: var(--ink); }
.btn-light:focus-visible { outline-color: var(--cream); }

.hero { padding: 40px 0 0; align-items: stretch; }
.hero .wrap { display: flex; flex-direction: column; }

.wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 52px;
  letter-spacing: -0.045em;
  line-height: 1;
  padding-top: 22px;
}

.wordmark .o { position: relative; display: inline-block; }

.wordmark .hat {
  position: absolute;
  left: 50%;
  bottom: 0.68em;
  width: 0.86em;
  transform: translateX(-50%) rotate(9deg);
  transform-origin: 50% 100%;
  overflow: visible;
}

.hero-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
}

.hero-copy { align-self: center; padding-bottom: 40px; }

h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 72px;
  line-height: 1.0;
  letter-spacing: -0.038em;
  max-width: 11.5ch;
  margin-bottom: 48px;
  text-wrap: balance;
}

.hero-stage { position: relative; padding-top: 170px; }

.hero-fig { width: 100%; max-width: 450px; margin-left: auto; margin-right: 10px; position: relative; z-index: 1; }

.curb {
  position: relative;
  height: 26px;
  margin-top: -30px;
  margin-right: calc((100vw - min(100vw, 1200px)) / -2 - 64px);
  margin-left: -40px;
  background: var(--ink);
  border-radius: 8px 0 0 0;
}

.say {
  position: absolute;
  bottom: 352px;
  left: -24px;
  max-width: 320px;
  background: var(--cream);
  border: 4px solid var(--ink);
  border-radius: 28px 28px 8px 28px;
  padding: 18px 24px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
  z-index: 2;
}

.hello .wave-arm { animation: hello 1.8s .5s var(--ease) both; }
.again .wave-arm { animation: again 1.1s var(--ease); }
.hero-stage .say { animation: rise .5s 1.6s var(--ease) both; }

@keyframes hello {
  0% { transform: rotate(78deg); }
  30% { transform: rotate(-6deg); }
  48% { transform: rotate(10deg); }
  66% { transform: rotate(-8deg); }
  84% { transform: rotate(4deg); }
  100% { transform: rotate(0); }
}

@keyframes again {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-12deg); }
  55% { transform: rotate(10deg); }
  80% { transform: rotate(-4deg); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px) rotate(var(--tilt, 0deg)); }
  to { opacity: 1; transform: rotate(var(--tilt, 0deg)); }
}

.examples { background: var(--deep); color: var(--cream); }

.ex-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items: center;
}

h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 56px;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.ex-side h2 { max-width: 9ch; margin-bottom: 56px; }

.ex-fig {
  width: 100%;
  max-width: 360px;
}

.ex-fig.pop { animation: pop .5s var(--ease); }

@keyframes pop {
  0% { transform: translateY(0); }
  35% { transform: translateY(-16px); }
  70% { transform: translateY(2px); }
  100% { transform: translateY(0); }
}

.thread {
  background: var(--cream);
  color: var(--ink);
  border-radius: 32px;
  padding: 20px 24px 24px;
}

.thread-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 4px 18px;
  border-bottom: 2px solid var(--rule);
}

.thread-name { font-weight: 700; font-size: 20px; }

.avatar { display: inline-block; flex: none; border-radius: 50%; overflow: hidden; }
.avatar svg { display: block; width: 100%; height: 100%; }
.a24 { width: 24px; height: 24px; }
.a48 { width: 48px; height: 48px; }
.a120 { width: 120px; height: 120px; }

.thread-body {
  list-style: none;
  margin: 0;
  padding: 0;
  height: 530px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
}

.msg { display: flex; align-items: flex-end; gap: 10px; }
.msg.you { justify-content: flex-end; }

.bubble {
  max-width: 82%;
  padding: 13px 19px;
  border-radius: 24px;
  font-size: 19px;
  line-height: 1.38;
}

.you .bubble { background: var(--deep); color: var(--cream); border-bottom-right-radius: 8px; }
.yuno .bubble { background: var(--pink); border-bottom-left-radius: 8px; }

.later {
  align-self: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-2);
  padding: 8px 0 4px;
}

.msg, .later { opacity: 0; transform: translateY(12px); transition: opacity .4s ease, transform .5s var(--ease); }
.msg.in, .later.in { opacity: 1; transform: none; }

.dots { display: inline-flex; gap: 6px; padding: 8px 2px; vertical-align: middle; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--ink); opacity: .3; animation: dot 1.1s infinite; }
.dots i:nth-child(2) { animation-delay: .15s; }
.dots i:nth-child(3) { animation-delay: .3s; }

@keyframes dot { 40% { opacity: .9; transform: translateY(-2px); } }

.topics {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.topics button {
  font-family: var(--text);
  font-size: 16px;
  font-weight: 600;
  color: var(--cream);
  background: transparent;
  border: 2px solid rgba(255, 253, 245, .28);
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}

.topics button:hover { border-color: var(--cream); }
.topics button[aria-pressed="true"] { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }

.steps { background: var(--cream); }

.steps h2 { margin-bottom: 40px; }

.step-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
  position: relative;
}

.step-list::before {
  content: '';
  position: absolute;
  top: 242px;
  left: -40px;
  right: calc((100vw - min(100vw, 1200px)) / -2 - 64px);
  height: 18px;
  background: var(--ink);
  border-radius: 6px 0 0 6px;
}

.step-fig { width: 260px; height: 263px; margin: 0 0 36px -26px; position: relative; }

.step-fig.again .wave-arm { animation: again 1.1s .3s var(--ease); }

.num {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  border: 3px solid var(--ink);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 18px;
}

.step-list h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.step-list p { font-size: 19px; max-width: 30ch; }

.privacy-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 88px;
  align-items: center;
}

.privacy-fig { width: 100%; max-width: 420px; justify-self: end; }

.privacy h2 { max-width: 11ch; margin-bottom: 44px; font-size: 60px; }

.nos { list-style: none; padding: 0; margin: 0; max-width: 520px; }

.nos li {
  font-size: 22px;
  font-weight: 500;
  padding: 14px 0;
  border-top: 2px solid var(--pink-2);
}

.nos li:last-child { border-bottom: 2px solid var(--pink-2); }

.end { background: var(--deep); color: var(--cream); min-height: 88vh; }

.end-wrap { display: flex; flex-direction: column; align-items: center; text-align: center; }

.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--cream);
  color: var(--ink);
  border-radius: 32px;
  padding: 32px 56px 24px;
  margin-bottom: 48px;
}

.contact .a120 { box-shadow: 0 0 0 4px var(--ink); }

.contact-name { font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: -0.02em; margin-top: 16px; }

.end h2 { font-size: 64px; max-width: 13ch; margin-bottom: 44px; }

@media (max-width: 1100px) and (min-width: 901px) {
  h1 { font-size: 60px; }
  .wrap { padding: 0 48px; }
}

@media (max-width: 900px) {
  body { font-size: 18px; }
  .wrap { padding: 0 20px; }
  .screen { min-height: auto; padding: 80px 0; }
  .hero { min-height: 100svh; padding: 20px 0 0; }
  .wordmark { font-size: 40px; padding-top: 18px; }
  .hero-grid { grid-template-columns: 1fr; gap: 0; align-items: stretch; }
  .hero-copy { padding: 40px 0 0; }
  h1 { font-size: 40px; margin-bottom: 28px; max-width: 12ch; }
  .hero-stage { padding-top: 96px; display: flex; flex-direction: column; justify-content: flex-end; }
  .say { bottom: 150px; left: auto; right: 0; font-size: 16px; padding: 12px 15px; border-width: 3px; border-radius: 20px 20px 20px 6px; max-width: 176px; }
  .hero-fig { width: 214px; margin: 0 0 0 -22px; }
  .curb { position: absolute; left: -20px; right: -20px; bottom: 0; margin: 0; height: 20px; border-radius: 0; }
  .hero-stage { padding-bottom: 14px; }
  .btn { font-size: 19px; padding: 19px 32px; }
  h2 { font-size: 38px; }
  .ex-grid { grid-template-columns: 1fr; gap: 0; }
  .ex-side { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
  .ex-side h2 { margin: 0 0 8px; }
  .ex-fig { width: 116px; flex: none; }
  .thread { padding: 16px 14px 18px; border-radius: 26px; }
  .thread-head { padding-bottom: 14px; }
  .thread-body { height: 496px; gap: 10px; }
  .bubble { font-size: 16px; max-width: 86%; padding: 11px 15px; border-radius: 20px; }
  .topics { flex-wrap: nowrap; overflow-x: auto; margin: 18px -20px 0; padding: 4px 20px 8px; scrollbar-width: none; }
  .topics::-webkit-scrollbar { display: none; }
  .topics li { flex: none; }
  .topics button { font-size: 16px; padding: 7px 14px; }
  .steps h2 { margin-bottom: 40px; }
  .step-list { grid-template-columns: 1fr; gap: 48px; }
  .step-list::before { display: none; }
  .step-list li { display: grid; grid-template-columns: 116px 1fr; column-gap: 18px; align-items: start; }
  .step-fig { width: 116px; height: auto; margin: 0; grid-row: span 3; border-bottom: 12px solid var(--ink); border-radius: 0 0 4px 4px; padding-bottom: 0; }
  .num { width: 34px; height: 34px; font-size: 17px; margin: 4px 0 10px; }
  .step-list h3 { font-size: 24px; }
  .step-list p { font-size: 17px; }
  .privacy-grid { grid-template-columns: 1fr; gap: 28px; }
  .privacy-fig { max-width: 200px; justify-self: start; margin-left: -18px; }
  .privacy h2 { font-size: 40px; margin-bottom: 28px; }
  .nos li { font-size: 18px; padding: 12px 0; }
  .end { min-height: auto; padding: 96px 0; }
  .contact { padding: 26px 44px 20px; margin-bottom: 36px; }
  .end h2 { font-size: 40px; }
}

@media (max-width: 359px) {
  .thread-body { height: 540px; }
}

@media (prefers-reduced-motion: reduce) {
  .eyes, .dots i, .ex-fig.pop, .wave-arm, .hero-stage .say { animation: none !important; }
  .msg, .later, .btn, .topics button { transition: none; }
}

.ex-main, .ex-side { min-width: 0; }

.hero-fig,
.ex-fig,
.step-fig,
.privacy-fig {
  filter: drop-shadow(5px 0 0 var(--cream)) drop-shadow(-5px 0 0 var(--cream)) drop-shadow(0 5px 0 var(--cream)) drop-shadow(0 -5px 0 var(--cream)) drop-shadow(8px 10px 0 rgba(19, 33, 43, .22));
}
.hero-fig { transform: rotate(-3deg); }
.privacy-fig { transform: rotate(3deg); }
.say,
.thread,
.contact { box-shadow: 8px 10px 0 rgba(19, 33, 43, .22); }
.say { --tilt: 2deg; transform: rotate(var(--tilt)); }
.contact { transform: rotate(-2deg); }
